Skip to content
Commit af4ab1b6 authored by Dan Gohman's avatar Dan Gohman
Browse files

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.

llvm-svn: 101000
parent cb13408f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment