summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-03-28 08:38:27 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-03-28 08:38:27 +0000
commitafff33001a4fd3049d97cb40eea459d5c87ae5cc (patch)
tree795e1c7331514e6f5a7ce5e03405b011826c4bc4 /test
parent9fc5c83fb7b86862d4a29bf416842a4f1a0084d5 (diff)
downloadllvm-afff33001a4fd3049d97cb40eea459d5c87ae5cc.tar.gz
llvm-afff33001a4fd3049d97cb40eea459d5c87ae5cc.tar.bz2
llvm-afff33001a4fd3049d97cb40eea459d5c87ae5cc.tar.xz
Switch to WeakVHs in the value mapper, and aggressively prune dead basic
blocks in the function cloner. This removes the last case of trivially dead code that I've been seeing in the wild getting inlined, analyzed, re-inlined, optimized, only to be deleted. Nukes a FIXME from the cleanup tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/Inline/inline_cleanup.ll10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/Transforms/Inline/inline_cleanup.ll b/test/Transforms/Inline/inline_cleanup.ll
index cf57cf0641..27ee617fc9 100644
--- a/test/Transforms/Inline/inline_cleanup.ll
+++ b/test/Transforms/Inline/inline_cleanup.ll
@@ -130,16 +130,6 @@ define void @outer2(i32 %z, i1 %b) {
; make it through inlining.
; CHECK: define void @outer2
; CHECK-NOT: call
-;
-; FIXME: Currently, we aren't smart enough to delete the last dead basic block.
-; However, we do make the condition a constant. Check that at least until we can
-; start removing the block itself.
-; CHECK: br i1 false, label %[[LABEL:[a-z0-9_.]+]],
-; CHECK-NOT: call
-; CHECK: [[LABEL]]:
-; CHECK-NEXT: call void @f(i32 10)
-; CHECK-NOT: call
-;
; CHECK: ret void
entry: