summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IndVarSimplify
Commit message (Collapse)AuthorAgeFilesLines
...
* Use a sign-extend instead of a zero-extend when promoting aDan Gohman2009-02-183-4/+37
| | | | | | | | | | | | trip count value when the original loop iteration condition is signed and the canonical induction variable won't undergo signed overflow. This isn't required for correctness; it just preserves more information about original loop iteration values. Add a getTruncateOrSignExtend method to ScalarEvolution, following getTruncateOrZeroExtend. llvm-svn: 64918
* Fix a corner case in the new indvars promotion logic: if thereDan Gohman2009-02-181-0/+38
| | | | | | | | | | are multiple IV's in a loop, some of them may under go signed or unsigned wrapping even if the IV that's used in the loop exit condition doesn't. Restrict sign-extension-elimination and zero-extension-elimination to only those that operate on the original loop-controlling IV. llvm-svn: 64866
* Rename IndVarsSimplify to IndVarSimplify, to be consistent withDan Gohman2009-02-1645-0/+1767
the name used in the code that these tests are for. llvm-svn: 64624
OpenPOWER on IntegriCloud