This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Combine trunc (splat_vector x) -> splat_vector (trunc x)
ClosedPublic

Authored by luke on Aug 29 2023, 4:44 PM.

Details

Summary

From the discussion in https://reviews.llvm.org/D158853, moving the truncate
into the splat helps more splatted scalar operands get selected on RISC-V, and
also avoids the need for splat_vector_parts on RV32.

Diff Detail

Event Timeline

luke created this revision.Aug 29 2023, 4:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2023, 4:44 PM
luke requested review of this revision.Aug 29 2023, 4:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2023, 4:44 PM
RKSimon accepted this revision.Aug 30 2023, 5:54 AM

LGTM

This revision is now accepted and ready to land.Aug 30 2023, 5:54 AM
This revision was landed with ongoing or failed builds.Aug 30 2023, 7:23 AM
This revision was automatically updated to reflect the committed changes.