Try to narrow more bswap, if the shift amount is less than the zext
(bswap (zext X)) >> C --> (zext (bswap X)) << C'
This is 'TODO' left in D122166.
Paths
| Differential D124598
[InstCombine] try to narrow more shifted bswap-of-zext ClosedPublic Authored by Chenbing.Zheng on Apr 28 2022, 1:14 AM.
Details Summary Try to narrow more bswap, if the shift amount is less than the zext This is 'TODO' left in D122166.
Diff Detail
Unit TestsFailed
Event TimelineComment Actions
I have update it https://alive2.llvm.org/ce/z/i7ddjn This revision is now accepted and ready to land.May 5 2022, 2:25 PM This revision was landed with ongoing or failed builds.May 5 2022, 7:48 PM Closed by commit rG4c8c101b4964: [InstCombine] try to narrow more shifted bswap-of-zext (authored by Chenbing.Zheng). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 425709 llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
llvm/test/Transforms/InstCombine/lshr.ll
|