summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/cmp-intrinsic.ll
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Temporarily Revert "Add basic loop fusion pass.""Eric Christopher2019-04-171-0/+493
| | | | | | | | 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-493/+0
| | | | | | | | As it's causing some bot failures (and per request from kbarton). This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda. llvm-svn: 358546
* [InstCombine] Simplify cttz/ctlz + icmp ugt/ultNikita Popov2019-01-191-26/+18
| | | | | | | | | | | | Followup to D55745, this time handling comparisons with ugt and ult predicates (which are the canonical forms for non-equality predicates). For ctlz we can convert into a simple icmp, for cttz we can convert into a mask check. Differential Revision: https://reviews.llvm.org/D56355 llvm-svn: 351645
* [InstCombine] Improve cttz/ctlz + icmp tests; NFCNikita Popov2019-01-051-83/+134
| | | | | | | | Change part of the tests to use vectors (I'm using scalar for ugt and vector for ult), add multiuse variations, rename %lz to %tz for the cttz tests. llvm-svn: 350471
* [InstCombine] Add cttz/ctlz + icmp ugt/ult tests; NFCNikita Popov2019-01-051-0/+174
| | | | llvm-svn: 350468
* [InstCombine] Simplify cttz/ctlz + icmp eq/ne into mask checkNikita Popov2018-12-181-24/+44
| | | | | | | | | | | | | Checking whether a number has a certain number of trailing / leading zeros means checking whether it is of the form XXXX1000 / 0001XXXX, which can be done with an and+icmp. Related to https://bugs.llvm.org/show_bug.cgi?id=28668. As a next step, this can be extended to non-equality predicates. Differential Revision: https://reviews.llvm.org/D55745 llvm-svn: 349530
* [InstCombined] Add more tests for cttz/ctlz + icmp; NFCNikita Popov2018-12-161-11/+144
| | | | | | Test cases other than icmp with the bitwidth. llvm-svn: 349310
* [InstCombine] move and improve tests for cmp-intrinsic; NFCSanjay Patel2017-07-031-0/+87
| | | | llvm-svn: 307022
* [InstCombine] fix crash when folding cmp+bswap vectorSanjay Patel2017-07-021-0/+36
We assumed the constant was a scalar when creating the replacement operand. Also, improve tests for this fold and move the tests for this fold to their own file. I'll move the related and missing tests to this file as a follow-up. llvm-svn: 306985
OpenPOWER on IntegriCloud