1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test/Feature/OperandBundles/inliner-conservative.ll
Sanjoy Das b9b521e21e [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
2015-10-23 20:09:55 +00:00

18 lines
326 B
LLVM

; 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
}