Skip to content
  • Evan Cheng's avatar
    For each loop, keep track of all the IV expressions inserted indexed by · 3df447d3
    Evan Cheng authored
    stride. For a set of uses of the IV of a stride which is a multiple
    of another stride, do not insert a new IV expression. Rather, reuse the
    previous IV and rewrite the uses as uses of IV expression multiplied by
    the factor.
    
    e.g.
    x = 0 ...; x ++
    y = 0 ...; y += 4
    then use of y can be rewritten as use of 4*x for x86.
    
    llvm-svn: 26803
    3df447d3
Loading