summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorXin Tong <trent.xin.tong@gmail.com>2018-06-18 22:59:13 +0000
committerXin Tong <trent.xin.tong@gmail.com>2018-06-18 22:59:13 +0000
commitbfd8cfcb8dffbcf3b4ecdb5cad00d07fda4310f9 (patch)
tree4faa2fc4844a48e98aa3cce1ef287f9084f55def /llvm/test
parentd9c3c1cd9d7bf5e58e4bd1ae15701c921acee3f3 (diff)
downloadbcm5719-llvm-bfd8cfcb8dffbcf3b4ecdb5cad00d07fda4310f9.tar.gz
bcm5719-llvm-bfd8cfcb8dffbcf3b4ecdb5cad00d07fda4310f9.zip
Simplify blockaddress usage before giving up in MergeBlockIntoPredecessor
Summary: Simplify blockaddress usage before giving up in MergeBlockIntoPredecessor This is a missing small optimization in MergeBlockIntoPredecessor. This helps with one simplifycfg test which expects this case to be handled. Reviewers: davide, spatel, brzycki, asbirlea Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D48284 llvm-svn: 334992
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/dce-cond-after-folding-terminator.ll5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/dce-cond-after-folding-terminator.ll b/llvm/test/Transforms/SimplifyCFG/dce-cond-after-folding-terminator.ll
index 036a615e7ff..a15cdd6a28f 100644
--- a/llvm/test/Transforms/SimplifyCFG/dce-cond-after-folding-terminator.ll
+++ b/llvm/test/Transforms/SimplifyCFG/dce-cond-after-folding-terminator.ll
@@ -37,10 +37,7 @@ define void @test_indirectbr(i32 %x) {
entry:
; CHECK-LABEL: @test_indirectbr(
; CHECK-NEXT: entry:
-; Ideally this should now check:
-; CHK-NEXT: ret void
-; But that doesn't happen yet. Instead:
-; CHECK-NEXT: br label %L1
+; CHECK-NEXT: ret void
%label = bitcast i8* blockaddress(@test_indirectbr, %L1) to i8*
indirectbr i8* %label, [label %L1, label %L2]
OpenPOWER on IntegriCloud