diff options
author | Andrew Trick <atrick@apple.com> | 2011-10-11 02:28:51 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-10-11 02:28:51 +0000 |
commit | f9201c572e3e2e22052f7764e80037f509b6f4ed (patch) | |
tree | 4b0e878e38ab53d91ef9edad9ca04440457a105e /llvm/test/Transforms/IndVarSimplify | |
parent | df14b3a8377fd020857ea6301d572d76c5a21221 (diff) | |
download | bcm5719-llvm-f9201c572e3e2e22052f7764e80037f509b6f4ed.tar.gz bcm5719-llvm-f9201c572e3e2e22052f7764e80037f509b6f4ed.zip |
Move replaceCongruentIVs into SCEVExapander and bias toward "expanded"
IVs.
Indvars previously chose randomly between congruent IVs. Now it will
bias the decision toward IVs that SCEVExpander likes to create. This
was not done to fix any problem, it's just a welcome side effect of
factoring code.
llvm-svn: 141633
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify')
-rw-r--r-- | llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll b/llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll index 79485837d5f..9c2abd0f31c 100644 --- a/llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll +++ b/llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll @@ -281,6 +281,7 @@ return: ; CHECK-NOT: phi ; CHECK: add i32 ; CHECK: add i32 +; CHECK: add i32 ; CHECK-NOT: add ; CHECK: return: ; |