summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-31 16:08:00 +0000
committerDan Gohman <gohman@apple.com>2009-10-31 16:08:00 +0000
commitf230d8ad15f7ad5cdc5f3950b9d4f0c773d0bac0 (patch)
tree5152d19973d0bd6384e3736e5a41562925ef237b /test
parent4c7279ac726e338400626fca5a09b5533426eb6a (diff)
downloadexternal_llvm-f230d8ad15f7ad5cdc5f3950b9d4f0c773d0bac0.zip
external_llvm-f230d8ad15f7ad5cdc5f3950b9d4f0c773d0bac0.tar.gz
external_llvm-f230d8ad15f7ad5cdc5f3950b9d4f0c773d0bac0.tar.bz2
Merge the enhancements from LoopUnroll's FoldBlockIntoPredecessor into
MergeBlockIntoPredecessor. This makes SimplifyCFG slightly more aggressive, and makes it unnecessary for LoopUnroll to have its own copy of this code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/SimplifyCFG/PhiBlockMerge.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/PhiBlockMerge.ll b/test/Transforms/SimplifyCFG/PhiBlockMerge.ll
index a648efd..1219dfe 100644
--- a/test/Transforms/SimplifyCFG/PhiBlockMerge.ll
+++ b/test/Transforms/SimplifyCFG/PhiBlockMerge.ll
@@ -9,6 +9,7 @@ define i32 @test(i1 %a, i1 %b) {
O: ; preds = %0
br i1 %b, label %N, label %Q
Q: ; preds = %O
+ call void @foo()
br label %N
N: ; preds = %Q, %O
; This block should be foldable into M
@@ -20,3 +21,4 @@ M: ; preds = %N, %0
ret i32 %R
}
+declare void @foo()