llvm.org GIT mirror llvm / release_50 test / Transforms / PartiallyInlineLibCalls / bad-prototype.ll
release_50

Tree @release_50 (Download .tar.gz)

bad-prototype.ll @release_50raw · history · blame

; RUN: opt -S -partially-inline-libcalls < %s | FileCheck %s
; RUN: opt -S -passes=partially-inline-libcalls < %s | FileCheck %s

target triple = "x86_64-unknown-linux-gnu"

declare i32 @sqrt()

; CHECK-LABEL: @foo
define i32 @foo() {
  ; CHECK: call{{.*}}@sqrt
  ; CHECK-NOT: call{{.*}}@sqrt
  %r = call i32 @sqrt()
  ret i32 %r
}