llvm.org GIT mirror llvm / 2c00583 test / Transforms / IPConstantProp / noinline-return.ll
2c00583

Tree @2c00583 (Download .tar.gz)

noinline-return.ll @2c00583raw · history · blame

; RUN: opt %s -ipsccp -S | FileCheck %s

define i32 @tinkywinky() #0 {
entry:
  ret i32 5
}

define i32 @patatino() {
entry:
  %call = call i32 @tinkywinky()

; Check that we don't propagate the return value of
; @tinkywinky.
; CHECK: call i32 @dipsy(i32 %call)
  %call1 = call i32 @dipsy(i32 %call)
  ret i32 %call1
}

declare i32 @dipsy(i32)

attributes #0 = { noinline }