This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Add tests for bitwise (A >> C - 1, zext(icmp)) -> zext (bitwise(A<0, icmp)) fold (NFC)
ClosedPublic

Authored by XChy on Jul 9 2023, 7:13 AM.

Details

Summary

Tests for an upcoming bitwise (A >> C - 1, zext(icmp)) -> zext (bitwise(A<0, icmp)) fold.
Related issue:
a < b | a >b
a < b & a >= b - 1

Diff Detail

Event Timeline

XChy created this revision.Jul 9 2023, 7:13 AM
XChy requested review of this revision.Jul 9 2023, 7:13 AM
XChy retitled this revision from [InstCombine] Add tests for bitwise (A << X, zext(icmp)) -> zext (bitwise(A<0, icmp)) fold (NFC) to [InstCombine] Add tests for bitwise (A << C - 1, zext(icmp)) -> zext (bitwise(A<0, icmp)) fold (NFC).
XChy edited the summary of this revision. (Show Details)
XChy retitled this revision from [InstCombine] Add tests for bitwise (A << C - 1, zext(icmp)) -> zext (bitwise(A<0, icmp)) fold (NFC) to [InstCombine] Add tests for bitwise (A >> C - 1, zext(icmp)) -> zext (bitwise(A<0, icmp)) fold (NFC).Jul 9 2023, 5:28 PM
XChy edited the summary of this revision. (Show Details)
XChy updated this revision to Diff 538615.Jul 10 2023, 6:41 AM
XChy updated this revision to Diff 539022.Jul 11 2023, 4:44 AM
XChy set the repository for this revision to rG LLVM Github Monorepo.
XChy updated this revision to Diff 539398.Jul 11 2023, 11:25 PM
XChy updated this revision to Diff 540409.Jul 14 2023, 7:17 AM
XChy set the repository for this revision to rG LLVM Github Monorepo.
nikic accepted this revision.Jul 24 2023, 4:01 AM
This revision is now accepted and ready to land.Jul 24 2023, 4:01 AM
This revision was landed with ongoing or failed builds.Jul 24 2023, 4:04 AM
This revision was automatically updated to reflect the committed changes.