| commit | 3df447d3546377b85a3011dccd30038cbbfffad0 | [log] [tgz] |
|---|---|---|
| author | Evan Cheng <evan.cheng@apple.com> | Thu Mar 16 21:53:05 2006 +0000 |
| committer | Evan Cheng <evan.cheng@apple.com> | Thu Mar 16 21:53:05 2006 +0000 |
| tree | d46c1f8d529b2daae01784c5e23ad567ba4c9fa3 | |
| parent | 20931a798eff32eaefa1e5f7e4062996bc5cd220 [diff] |
For each loop, keep track of all the IV expressions inserted indexed by 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