summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/sadd-with-overflow.ll
Commit message (Collapse)AuthorAgeFilesLines
* [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