diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2006-03-16 21:53:05 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-16 21:53:05 +0000 |
| commit | 3df447d3546377b85a3011dccd30038cbbfffad0 (patch) | |
| tree | d46c1f8d529b2daae01784c5e23ad567ba4c9fa3 /llvm/lib/Transforms/Utils/LoopSimplify.cpp | |
| parent | 20931a798eff32eaefa1e5f7e4062996bc5cd220 (diff) | |
| download | bcm5719-llvm-3df447d3546377b85a3011dccd30038cbbfffad0.tar.gz bcm5719-llvm-3df447d3546377b85a3011dccd30038cbbfffad0.zip | |
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
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions

