commit | 69e71b434c41563faa0af3eccde76372d70ba3d2 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Tue Apr 13 01:46:36 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Tue Apr 13 01:46:36 2010 +0000 |
tree | b8e9077bcb2559facb81be0df532baa82ab134e3 | |
parent | c6a18cf89d1bd9d0e18599277274b2d27584e3f0 [diff] |
Teach IndVarSimplify how to eliminate remainder operators where the 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