summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstSimplify/icmp-ranges.ll
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Temporarily Revert "Add basic loop fusion pass.""Eric Christopher2019-04-171-0/+5470
| | | | | | | | The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
* Temporarily Revert "Add basic loop fusion pass."Eric Christopher2019-04-171-5470/+0
| | | | | | | | As it's causing some bot failures (and per request from kbarton). This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda. llvm-svn: 358546
* [InstSimplify] use ConstantRange to simplify or-of-icmpsSanjay Patel2017-05-071-420/+126
| | | | | | | | | | | | | We can simplify (or (icmp X, C1), (icmp X, C2)) to 'true' or one of the icmps in many cases. I had to check some of these with Alive to prove to myself it's right, but everything seems to check out. Eg, the deleted code in instcombine was completely ignoring predicates with mismatched signedness. This is a follow-up to: https://reviews.llvm.org/rL301260 https://reviews.llvm.org/D32143 llvm-svn: 302370
* [InstSimplify] fix copy-paste mistake in test comments; NFCSanjay Patel2017-05-051-200/+200
| | | | llvm-svn: 302251
* [InstSimplify] add tests for (icmp X, C1 | icmp X, C2); NFCSanjay Patel2017-05-051-0/+3020
| | | | | | These are the 'or' counterparts for the tests added with r300493. llvm-svn: 302248
* [InstSimplify] use ConstantRange to simplify more and-of-icmpsSanjay Patel2017-04-241-252/+84
| | | | | | | | | | | | | We can simplify (and (icmp X, C1), (icmp X, C2)) to one of the icmps in many cases. I had to check some of these with Alive to prove to myself it's right, but everything seems to check out. Eg, the code in instcombine was completely ignoring predicates with mismatched signedness. Handling or-of-icmps would be a follow-up step. Differential Revision: https://reviews.llvm.org/D32143 llvm-svn: 301260
* [InstSimplify] add/move tests for (icmp X, C1 & icmp X, C2); NFCSanjay Patel2017-04-171-0/+2912
We simplify based on range intersection, but we're missing folds. llvm-svn: 300493
OpenPOWER on IntegriCloud