xref: /aosp_15_r20/external/llvm/test/Feature/OperandBundles/inliner-conservative.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt -S -inline < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; Check that the inliner does not inline through arbitrary unknown
4*9880d681SAndroid Build Coastguard Worker; operand bundles.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine i32 @callee() {
7*9880d681SAndroid Build Coastguard Worker entry:
8*9880d681SAndroid Build Coastguard Worker  ret i32 2
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerdefine i32 @caller() {
12*9880d681SAndroid Build Coastguard Worker; CHECK: @caller(
13*9880d681SAndroid Build Coastguard Worker entry:
14*9880d681SAndroid Build Coastguard Worker; CHECK: call i32 @callee() [ "unknown"() ]
15*9880d681SAndroid Build Coastguard Worker  %x = call i32 @callee() [ "unknown"() ]
16*9880d681SAndroid Build Coastguard Worker  ret i32 %x
17*9880d681SAndroid Build Coastguard Worker}
18