Clamp types to [s32, s64] and make them a power of 2.
This matches SDAG's behaviour.
Paths
| Differential D108344
[AArch64][GlobalISel] Legalize non-register-sized scalar G_BITREVERSE ClosedPublic Authored by paquette on Aug 18 2021, 4:51 PM.
Details Summary Clamp types to [s32, s64] and make them a power of 2. This matches SDAG's behaviour.
Diff Detail
Event TimelineHerald added subscribers: hiraditya, kristof.beyls, rovka. · View Herald TranscriptAug 18 2021, 4:51 PM This revision is now accepted and ready to land.Aug 20 2021, 2:32 PM Closed by commit rG9e9d70591e72: [AArch64][GlobalISel] Legalize non-register-sized scalar G_BITREVERSE (authored by paquette). · Explain WhyAug 20 2021, 2:47 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 367904 llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-bitreverse.mir
|