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
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Paths
| Differential D154789
[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.
Diff Detail
Unit TestsFailed Event TimelineXChy added a child revision: D154791: [InstCombine] Transform bitwise (A >> C - 1, zext(icmp)) -> zext (bitwise(A < 0, icmp)) fold..Jul 9 2023, 5:05 PM 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 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 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 Closed by commit rG724e2b1225cd: [InstCombine] Add tests for bitwise (A >> C - 1, zext(icmp)) -> zext (bitwise… (authored by XChy, committed by nikic). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 538615 llvm/test/Transforms/InstCombine/and-or-icmps.ll
|