Check the alwaysinline attribute on the call as well as on the caller.

Differential Revision: http://reviews.llvm.org/D3815

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209150 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Peter Collingbourne
2014-05-19 18:25:54 +00:00
parent 234227f375
commit 20a6a27bea
3 changed files with 13 additions and 3 deletions

View File

@@ -122,3 +122,14 @@ entry:
ret void
}
define i32 @inner7() {
ret i32 1
}
define i32 @outer7() {
; CHECK-LABEL: @outer7(
; CHECK-NOT: call
; CHECK: ret
%r = call i32 @inner7() alwaysinline
ret i32 %r
}