summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/sadd-with-overflow.ll
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Temporarily Revert "Add basic loop fusion pass.""Eric Christopher2019-04-171-0/+124
| | | | | | | | 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-124/+0
| | | | | | | | As it's causing some bot failures (and per request from kbarton). This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda. llvm-svn: 358546
* [ValueTracking] Use computeConstantRange() in signed add overflow determinationNikita Popov2019-04-091-1/+2
| | | | | | | | | | | | | This is D59386 for the signed add case. The computeConstantRange() result is now intersected into the existing known bits information, allowing to detect additional no-overflow/always-overflow conditions (though the latter isn't used yet). This (finally...) covers the motivating case from D59071. Differential Revision: https://reviews.llvm.org/D60420 llvm-svn: 358014
* [InstCombine] Add tests for ssubo X, C -> saddo X, -C; NFCNikita Popov2019-03-261-0/+10
| | | | | | | | | | | Add baseline tests for canonicalization of ssubo X, C -> saddo X, -C. Patch by Dan Robertson. Differential Revision: https://reviews.llvm.org/D59653 llvm-svn: 357013
* [InstCombine] Improve with.overflow intrinsic tests; NFCNikita Popov2019-03-181-58/+69
| | | | | | | | | | | - Do not use unnamed values in saddo tests - Add tests for canonicalization of a constant arg0 Patch by Dan Robertson. Differential Revision: https://reviews.llvm.org/D59476 llvm-svn: 356403
* [InstCombine] Fold add nsw + sadd.with.overflowNikita Popov2019-03-061-16/+22
| | | | | | | | | | | | | Fold `add nsw` and `sadd.with.overflow` with constants if the addition does not overflow. Part of https://bugs.llvm.org/show_bug.cgi?id=38146. Patch by Dan Robertson. Differential Revision: https://reviews.llvm.org/D58881 llvm-svn: 355530
* [InstCombine] Add tests for add nsw + sadd.with.overflow; NFCNikita Popov2019-03-041-0/+96
Baseline tests for D58881, which fixes part of PR38146. Patch by Dan Robertson. llvm-svn: 355328
OpenPOWER on IntegriCloud