aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/IndVarSimplify/eliminate-rem.ll
Commit message (Collapse)AuthorAgeFilesLines
* Teach IndVarSimplify how to eliminate remainder operators where theDan Gohman2010-04-131-0/+121
numerator is an induction variable. For example, with code like this: for (i=0;i<n;++i) x[i%n] = 0; IndVarSimplify will now recognize that i is always less than n inside the loop, and eliminate the remainder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101113 91177308-0d34-0410-b5e6-96231b3b80d8