This allows us to handle the s88 G_SELECTS:
https://godbolt.org/z/5s18M4erY
Weird types like this can result in weird merges.
Widening to s128 first and then clamping down avoids that situation.
Paths
| Differential D107415
[AArch64][GlobalISel] Widen G_SELECT before clamping it ClosedPublic Authored by paquette on Aug 3 2021, 5:33 PM.
Details Summary This allows us to handle the s88 G_SELECTS: https://godbolt.org/z/5s18M4erY Weird types like this can result in weird merges. Widening to s128 first and then clamping down avoids that situation.
Diff Detail
Event TimelineHerald added subscribers: danielkiss, hiraditya, kristof.beyls, rovka. · View Herald TranscriptAug 3 2021, 5:33 PM This revision is now accepted and ready to land.Aug 3 2021, 5:36 PM Closed by commit rG564373637832: [AArch64][GlobalISel] Widen G_SELECT before clamping it (authored by paquette). · Explain WhyAug 3 2021, 6:32 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 363930 llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-select.mir
|