This is an archive of the discontinued LLVM Phabricator instance.

[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
(bswap (zext X)) >> C --> (zext (bswap X)) << C'

This is 'TODO' left in D122166.

https://alive2.llvm.org/ce/z/i7ddjn

Diff Detail

Unit TestsFailed

Event Timeline

Chenbing.Zheng created this revision.Apr 28 2022, 1:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 28 2022, 1:14 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Chenbing.Zheng requested review of this revision.Apr 28 2022, 1:14 AM

The alive2 link appears to be broken?

Chenbing.Zheng edited the summary of this revision. (Show Details)May 4 2022, 7:28 PM

The alive2 link appears to be broken?

I have update it https://alive2.llvm.org/ce/z/i7ddjn

RKSimon accepted this revision.May 5 2022, 2:25 PM

LGTM

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
This revision was automatically updated to reflect the committed changes.