summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IndVarSimplify/eliminate-sat.ll
Commit message (Collapse)AuthorAgeFilesLines
* [SimplifyIndVar] Simplify non-overflowing saturating add/subNikita Popov2019-06-151-8/+8
| | | | | | | | | | | If we can detect that saturating math that depends on an IV cannot overflow, replace it with simple math. This is similar to the CVP optimization from D62703, just based on a different underlying analysis (SCEV vs LVI) that catches different cases. Differential Revision: https://reviews.llvm.org/D62792 llvm-svn: 363489
* [IndVarSimplify] Add tests for saturating math on IV; NFCNikita Popov2019-06-021-0/+123
These saturating math ops can be replaced with simple math. llvm-svn: 362320
OpenPOWER on IntegriCloud