summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/OperandBundles
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-10-23 20:09:55 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-10-23 20:09:55 +0000
commit0a1bee8a80a1d11cc66790a50613f791b48269b0 (patch)
tree5afaad3a25cdd5d5efa19e055266bb9ccdf1ac54 /llvm/test/Feature/OperandBundles
parent48225b4433b579bac466e1baa34dd68dbf891485 (diff)
downloadbcm5719-llvm-0a1bee8a80a1d11cc66790a50613f791b48269b0.tar.gz
bcm5719-llvm-0a1bee8a80a1d11cc66790a50613f791b48269b0.zip
[Inliner] Don't inline through callsites with operand bundles
Summary: This change teaches the LLVM inliner to not inline through callsites with unknown operand bundles. Currently all operand bundles are "unknown" operand bundles but in the near future we will add support for inlining through some select kinds of operand bundles. Reviewers: reames, chandlerc, majnemer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D14001 llvm-svn: 251141
Diffstat (limited to 'llvm/test/Feature/OperandBundles')
-rw-r--r--llvm/test/Feature/OperandBundles/inliner-conservative.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/Feature/OperandBundles/inliner-conservative.ll b/llvm/test/Feature/OperandBundles/inliner-conservative.ll
new file mode 100644
index 00000000000..d9f09f71d90
--- /dev/null
+++ b/llvm/test/Feature/OperandBundles/inliner-conservative.ll
@@ -0,0 +1,17 @@
+; RUN: opt -S -inline < %s | FileCheck %s
+
+; Check that the inliner does not inline through arbitrary unknown
+; operand bundles.
+
+define i32 @callee() {
+ entry:
+ ret i32 2
+}
+
+define i32 @caller() {
+; CHECK: @caller(
+ entry:
+; CHECK: call i32 @callee() [ "unknown"() ]
+ %x = call i32 @callee() [ "unknown"() ]
+ ret i32 %x
+}
OpenPOWER on IntegriCloud