commit | 3fddbb337dd5d8de5317df62e8027a6dcd778e73 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Sun Apr 11 23:10:12 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Sun Apr 11 23:10:12 2010 +0000 |
tree | f934cbe83b98a92abb029521b8917bfc5a168264 | |
parent | 53c66eacc417c0113fba7159487b90005dc8f91e [diff] |
Teach IndVarSimplify how to eliminate comparisons involving induction variables. For example, with code like this: for (i=0;i<n;++i) if (i<n) x[i] = 0; IndVarSimplify will now recognize that i is always less than n inside the loop, and eliminate the if. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101000 91177308-0d34-0410-b5e6-96231b3b80d8