summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/objsize.ll
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-12-31 19:51:10 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-12-31 19:51:10 +0000
commitaf463573cbeff293e7f3e72b9fb81d2b447837de (patch)
tree27fa5265f10e5f97178c96c0c792b11610507822 /llvm/test/Transforms/InstCombine/objsize.ll
parentbb8cfd0fec3dcd4be6134350ac1da052473266fe (diff)
downloadbcm5719-llvm-af463573cbeff293e7f3e72b9fb81d2b447837de.tar.gz
bcm5719-llvm-af463573cbeff293e7f3e72b9fb81d2b447837de.zip
Revert "add support for PHI nodes to ObjectSizeOffsetVisitor"
This reverts r171298. Breaks clang selfhost. llvm-svn: 171318
Diffstat (limited to 'llvm/test/Transforms/InstCombine/objsize.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/objsize.ll54
1 files changed, 0 insertions, 54 deletions
diff --git a/llvm/test/Transforms/InstCombine/objsize.ll b/llvm/test/Transforms/InstCombine/objsize.ll
index de8ac97b6f5..31a3cb46e45 100644
--- a/llvm/test/Transforms/InstCombine/objsize.ll
+++ b/llvm/test/Transforms/InstCombine/objsize.ll
@@ -256,57 +256,3 @@ xpto:
return:
ret i32 7
}
-
-declare noalias i8* @valloc(i32) nounwind
-
-; CHECK: @test14
-; CHECK: ret i32 6
-define i32 @test14(i32 %a) nounwind {
- switch i32 %a, label %sw.default [
- i32 1, label %sw.bb
- i32 2, label %sw.bb1
- ]
-
-sw.bb:
- %call = tail call noalias i8* @malloc(i32 6) nounwind
- br label %sw.epilog
-
-sw.bb1:
- %call2 = tail call noalias i8* @calloc(i32 3, i32 2) nounwind
- br label %sw.epilog
-
-sw.default:
- %call3 = tail call noalias i8* @valloc(i32 6) nounwind
- br label %sw.epilog
-
-sw.epilog:
- %b.0 = phi i8* [ %call3, %sw.default ], [ %call2, %sw.bb1 ], [ %call, %sw.bb ]
- %1 = tail call i32 @llvm.objectsize.i32(i8* %b.0, i1 false)
- ret i32 %1
-}
-
-; CHECK: @test15
-; CHECK: llvm.objectsize
-define i32 @test15(i32 %a) nounwind {
- switch i32 %a, label %sw.default [
- i32 1, label %sw.bb
- i32 2, label %sw.bb1
- ]
-
-sw.bb:
- %call = tail call noalias i8* @malloc(i32 3) nounwind
- br label %sw.epilog
-
-sw.bb1:
- %call2 = tail call noalias i8* @calloc(i32 2, i32 1) nounwind
- br label %sw.epilog
-
-sw.default:
- %call3 = tail call noalias i8* @valloc(i32 3) nounwind
- br label %sw.epilog
-
-sw.epilog:
- %b.0 = phi i8* [ %call3, %sw.default ], [ %call2, %sw.bb1 ], [ %call, %sw.bb ]
- %1 = tail call i32 @llvm.objectsize.i32(i8* %b.0, i1 false)
- ret i32 %1
-}
OpenPOWER on IntegriCloud