commit | 4cf831c0ee15040fb6c2cdb24cf2750c6800aab3 | [log] [tgz] |
---|---|---|
author | Nicola Zaghen <nicola.zaghen@imgtec.com> | Tue Sep 04 10:29:48 2018 +0000 |
committer | Nicola Zaghen <nicola.zaghen@imgtec.com> | Tue Sep 04 10:29:48 2018 +0000 |
tree | 2f4b4bc46a573b12df13fba2edc84014aebc0f9a | |
parent | 7bcfffc0127dc171ec4f22668352d9231c52e407 [diff] |
[InstCombine] Fold icmp ugt/ult (add nuw X, C2), C --> icmp ugt/ult X, (C - C2) Support for sgt/slt was added in rL294898, this adds the same cases also for unsigned compares. This is the Alive proof: https://rise4fun.com/Alive/nyY Differential Revision: https://reviews.llvm.org/D50972 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341353 91177308-0d34-0410-b5e6-96231b3b80d8