[InstCombine] Remove redundant unsigned underflow fold (NFCI)
authorNikita Popov <npopov@redhat.com>
Mon, 25 Apr 2022 11:18:31 +0000 (13:18 +0200)
committerNikita Popov <npopov@redhat.com>
Mon, 25 Apr 2022 12:22:43 +0000 (14:22 +0200)
commite8945110d238289886cc51cafe9461bfcf109f6f
tree7d39140564febcf6ba111e441258e727b7221c31
parentd1762fc454c0d7ee0bcffe87e798f67b6c43c1d2
[InstCombine] Remove redundant unsigned underflow fold (NFCI)

This is now handled as a combination of two other folds:
(A+B) <= A & (A+B) != 0  -->  (A+B)-1 < A
(A+B)-1 < A  -->  -B < A
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp