aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.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-10-RemoveInstrCrash.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-10-RemoveInstrCrash.ll')
-rw-r--r--test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll b/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll
index 70ea11e..7536331 100644
--- a/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll
+++ b/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll
@@ -10,7 +10,7 @@ no_exit: ; preds = %no_exit, %entry
%k.0.pn = phi i32 [ %inc.4, %no_exit ], [ 1, %entry ] ; <i32> [#uses=1]
%inc.3 = add i32 %j.0.pn, 1 ; <i32> [#uses=1]
%inc.4 = add i32 %k.0.pn, 1 ; <i32> [#uses=1]
- br i1 false, label %no_exit, label %loopexit
+ br i1 undef, label %no_exit, label %loopexit
loopexit: ; preds = %no_exit, %entry
ret void