Sanjoy Das | 0a1bee8 | 2015-10-23 20:09:55 +0000 | [diff] [blame] | 1 | ; RUN: opt -S -inline < %s | FileCheck %s |
2 | |||||
3 | ; Check that the inliner does not inline through arbitrary unknown | ||||
4 | ; operand bundles. | ||||
5 | |||||
6 | define i32 @callee() { | ||||
7 | entry: | ||||
8 | ret i32 2 | ||||
9 | } | ||||
10 | |||||
11 | define i32 @caller() { | ||||
12 | ; CHECK: @caller( | ||||
13 | entry: | ||||
14 | ; CHECK: call i32 @callee() [ "unknown"() ] | ||||
15 | %x = call i32 @callee() [ "unknown"() ] | ||||
16 | ret i32 %x | ||||
17 | } |