aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/IndVarSimplify/avoid-i0.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-02-19 18:12:07 +0000
committerDan Gohman <gohman@apple.com>2010-02-19 18:12:07 +0000
commit00cb5b724547a821516292fe5cded7c6a5358bda (patch)
treea7de32f5f0495e9ca18a39599e62d221d4edf950 /test/Transforms/IndVarSimplify/avoid-i0.ll
parent6b89aa57e6506f073579398bd74845db9463b9f1 (diff)
downloadexternal_llvm-00cb5b724547a821516292fe5cded7c6a5358bda.zip
external_llvm-00cb5b724547a821516292fe5cded7c6a5358bda.tar.gz
external_llvm-00cb5b724547a821516292fe5cded7c6a5358bda.tar.bz2
Teach ScalarEvolution how to compute a tripcount for a loop with
true or false as its exit condition. These are usually eliminated by SimplifyCFG, but the may be left around during a pass which wishes to preserve the CFG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96683 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/IndVarSimplify/avoid-i0.ll')
-rw-r--r--test/Transforms/IndVarSimplify/avoid-i0.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/IndVarSimplify/avoid-i0.ll b/test/Transforms/IndVarSimplify/avoid-i0.ll
index d110a8a..59661fa 100644
--- a/test/Transforms/IndVarSimplify/avoid-i0.ll
+++ b/test/Transforms/IndVarSimplify/avoid-i0.ll
@@ -10,13 +10,13 @@ entry:
bb: ; preds = %bb6, %entry
%p_71_addr.0 = phi i8 [ %p_71, %entry ], [ %0, %bb6 ] ; <i8> [#uses=0]
- br i1 false, label %bb4, label %bb1
+ br i1 undef, label %bb4, label %bb1
bb1: ; preds = %bb
ret i32 0
bb4: ; preds = %bb4, %bb
- br i1 false, label %bb6, label %bb4
+ br i1 undef, label %bb6, label %bb4
bb6: ; preds = %bb4
%0 = and i8 0, 0 ; <i8> [#uses=1]