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
Summary
Diff Detail
Diff Detail
Event Timeline
XChy 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.