aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.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
commita78918b675f51155ae90d0d3df176bfcb79461b0 (patch)
treea7de32f5f0495e9ca18a39599e62d221d4edf950 /test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll
parent7455116392f9aeb5c78dc3a4c7ce5c833a3f3b4b (diff)
downloadexternal_llvm-a78918b675f51155ae90d0d3df176bfcb79461b0.zip
external_llvm-a78918b675f51155ae90d0d3df176bfcb79461b0.tar.gz
external_llvm-a78918b675f51155ae90d0d3df176bfcb79461b0.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/2009-05-24-useafterfree.ll')
-rw-r--r--test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll b/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll
index 9ad8691..d73eee8 100644
--- a/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll
+++ b/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll
@@ -12,7 +12,7 @@ bb.nph1.preheader: ; preds = %4
br label %bb.nph1
bb.nph1: ; preds = %.outer, %bb.nph1.preheader
- br i1 false, label %bb.nph3.preheader, label %.outer
+ br i1 undef, label %bb.nph3.preheader, label %.outer
bb.nph3.preheader: ; preds = %bb.nph1
br label %bb.nph3
@@ -31,7 +31,7 @@ bb.nph3: ; preds = %bb.nph3, %bb.nph3.preheader
br label %.outer
.outer: ; preds = %.outer.loopexit, %bb.nph1
- br i1 false, label %bb.nph1, label %.outer._crit_edge.loopexit
+ br i1 undef, label %bb.nph1, label %.outer._crit_edge.loopexit
.outer._crit_edge.loopexit: ; preds = %.outer
br label %.outer._crit_edge