summaryrefslogtreecommitdiff
path: root/test/Transforms/IndVarSimplify
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-10-11 02:28:51 +0000
committerAndrew Trick <atrick@apple.com>2011-10-11 02:28:51 +0000
commit204494149b6f846e8f173f525b129f5508076049 (patch)
treeb11301c696f341594215cf9edbbd1bdfcb9a4551 /test/Transforms/IndVarSimplify
parentb58078be33d3b2ffece4f4f21aa26686bcc22930 (diff)
downloadllvm-204494149b6f846e8f173f525b129f5508076049.tar.gz
llvm-204494149b6f846e8f173f525b129f5508076049.tar.bz2
llvm-204494149b6f846e8f173f525b129f5508076049.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/IndVarSimplify')
-rw-r--r--test/Transforms/IndVarSimplify/no-iv-rewrite.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Transforms/IndVarSimplify/no-iv-rewrite.ll b/test/Transforms/IndVarSimplify/no-iv-rewrite.ll
index 79485837d5..9c2abd0f31 100644
--- a/test/Transforms/IndVarSimplify/no-iv-rewrite.ll
+++ b/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:
;