view llvm/test/Feature/OperandBundles/inliner-conservative.ll @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 1f2b6ac9f198
line wrap: on
line source

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