This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Add regression test cases for bitreverse optimization; NFC
ClosedPublic

Authored by austin880625 on May 23 2023, 12:58 PM.

Details

Summary

Fold the following case on IR InstCombine pass. This patch includes the new test cases for this optimization

bitreverse(logic_op(x, bitreverse(y))) -> logic_op(bitreverse(x), y)
bitreverse(logic_op(bitreverse(x), y)) -> logic_op(x, bitreverse(y))
bitreverse(logic_op(bitreverse(x), bitreverse(y))) -> logic_op(x, y) with multi-use

Diff Detail

Event Timeline

austin880625 created this revision.May 23 2023, 12:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 12:58 PM
austin880625 requested review of this revision.May 23 2023, 12:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 12:58 PM
This revision is now accepted and ready to land.May 25 2023, 10:03 AM
This revision was landed with ongoing or failed builds.May 25 2023, 11:41 AM
This revision was automatically updated to reflect the committed changes.