summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-08-02 21:19:27 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-08-02 21:19:27 +0000
commit99890a225f80495468174becb876a560f4383cea (patch)
tree5da3db64890fdf6a311da83e361591d663e7604a /llvm/test/Transforms/InstCombine
parent8c9d9b2f0f414aeb2bd3fb929028d2ed5293bb42 (diff)
downloadbcm5719-llvm-99890a225f80495468174becb876a560f4383cea.tar.gz
bcm5719-llvm-99890a225f80495468174becb876a560f4383cea.zip
Lifetime intrinsics on undef are dead.
llvm-svn: 136722
Diffstat (limited to 'llvm/test/Transforms/InstCombine')
-rw-r--r--llvm/test/Transforms/InstCombine/deadcode.ll11
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/test/Transforms/InstCombine/deadcode.ll b/llvm/test/Transforms/InstCombine/deadcode.ll
index 52af0ef4e8d..7c7f1abc0ca 100644
--- a/llvm/test/Transforms/InstCombine/deadcode.ll
+++ b/llvm/test/Transforms/InstCombine/deadcode.ll
@@ -1,5 +1,5 @@
; RUN: opt < %s -instcombine -S | grep {ret i32 %A}
-; RUN: opt < %s -die -S | not grep call.*llvm.stacksave
+; RUN: opt < %s -die -S | not grep call.*llvm
define i32 @test(i32 %A) {
%X = or i1 false, false
@@ -22,3 +22,12 @@ define i32* @test2(i32 %width) {
declare i8* @llvm.stacksave()
+declare void @llvm.lifetime.start(i64, i8*)
+declare void @llvm.lifetime.end(i64, i8*)
+
+define void @test3() {
+ call void @llvm.lifetime.start(i64 -1, i8* undef)
+ call void @llvm.lifetime.end(i64 -1, i8* undef)
+ ret void
+}
+
OpenPOWER on IntegriCloud