aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-02-25 06:57:05 +0000
committerDan Gohman <gohman@apple.com>2010-02-25 06:57:05 +0000
commit85669637139089eaed8def1583ac04266c9654e2 (patch)
tree9179b71a2387b88fd18bfb147114734c0c7d0ccc /test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll
parenta5028a64634f995630e93390c5c23374a09a450f (diff)
Make LoopSimplify change conditional branches in loop exiting blocks
which branch on undef to branch on a boolean constant for the edge exiting the loop. This helps ScalarEvolution compute trip counts for loops. Teach ScalarEvolution to recognize single-value PHIs, when safe, and ForgetSymbolicName to forget such single-value PHI nodes as apprpriate in ForgetSymbolicName. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll')
-rw-r--r--test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll b/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll
index 30d9ea6fb3..ecd5086f73 100644
--- a/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll
+++ b/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll
@@ -7,7 +7,7 @@ define i32 @test() {
LoopHead: ; preds = %LoopHead, %0, %0
%A = phi i32 [ 7, %0 ], [ 7, %0 ], [ %B, %LoopHead ] ; <i32> [#uses=1]
%B = add i32 %A, 1 ; <i32> [#uses=2]
- br i1 undef, label %LoopHead, label %Out
+ br i1 true, label %LoopHead, label %Out
Out: ; preds = %LoopHead
ret i32 %B