summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-12-23 09:58:43 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-12-23 09:58:43 +0000
commit63ad9e054316550005ce9b5073e85f6e22f29801 (patch)
treef1064d28c90d34d4bef56082605732ad6f56e306 /llvm/test/Transforms
parent02f4787e45a43f745d7494e41841039383d4e6b6 (diff)
downloadbcm5719-llvm-63ad9e054316550005ce9b5073e85f6e22f29801.tar.gz
bcm5719-llvm-63ad9e054316550005ce9b5073e85f6e22f29801.zip
[OperandBundles] Have TailCallElim play nice with operand bundles
A call site's use of a Value might not correspond to an argument operand but to a bundle operand. This fixes PR25928. llvm-svn: 256328
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/TailCallElim/basic.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Transforms/TailCallElim/basic.ll b/llvm/test/Transforms/TailCallElim/basic.ll
index fe8bbe9ad03..b303fa743ca 100644
--- a/llvm/test/Transforms/TailCallElim/basic.ll
+++ b/llvm/test/Transforms/TailCallElim/basic.ll
@@ -188,3 +188,13 @@ define void @test11() {
; CHECK: call void @test11_helper2
ret void
}
+
+; PR25928
+define void @test12() {
+entry:
+; CHECK-LABEL: @test12
+; CHECK: {{^ *}} call void undef(i8* undef) [ "foo"(i8* %e) ]
+ %e = alloca i8
+ call void undef(i8* undef) [ "foo"(i8* %e) ]
+ unreachable
+}
OpenPOWER on IntegriCloud