| commit | acc42c4df18fcb0a4b0e3fe168862fe6db8c92b2 | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Thu Aug 04 19:08:16 2005 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Thu Aug 04 19:08:16 2005 +0000 |
| tree | 14209f8e9348e21adbc17b1710c1422432dbc832 | |
| parent | faf17b43da55a52711bbde1410db02e0c163029d [diff] |
Teach LSR about loop-variant expressions, such as loops like this:
for (i = 0; i < N; ++i)
A[i][foo()] = 0;
here we still want to strength reduce the A[i] part, even though foo() is
l-v.
This also simplifies some of the 'CanReduce' logic.
This implements Transforms/LoopStrengthReduce/ops_after_indvar.ll
llvm-svn: 22652