aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/IndVarSimplify/2003-12-15-Crash.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/2003-12-15-Crash.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/2003-12-15-Crash.ll')
-rw-r--r--test/Transforms/IndVarSimplify/2003-12-15-Crash.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll b/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll
index 5aa2d90..662828c 100644
--- a/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll
+++ b/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll
@@ -8,7 +8,7 @@ cond_continue.3: ; preds = %entry
loopexit.14: ; preds = %entry
%tmp.738 = sub i32 0, 0 ; <i32> [#uses=1]
- br i1 false, label %no_exit.15.preheader, label %loopexit.15
+ br i1 undef, label %no_exit.15.preheader, label %loopexit.15
no_exit.15.preheader: ; preds = %loopexit.14
br label %no_exit.15
@@ -16,7 +16,7 @@ no_exit.15.preheader: ; preds = %loopexit.14
no_exit.15: ; preds = %no_exit.15, %no_exit.15.preheader
%highC.0 = phi i32 [ %tmp.738, %no_exit.15.preheader ], [ %dec.0, %no_exit.15 ] ; <i32> [#uses=1]
%dec.0 = add i32 %highC.0, -1 ; <i32> [#uses=1]
- br i1 false, label %no_exit.15, label %loopexit.15
+ br i1 undef, label %no_exit.15, label %loopexit.15
loopexit.15: ; preds = %no_exit.15, %loopexit.14
ret void