summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Inline/always-inline.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/Inline/always-inline.ll')
-rw-r--r--llvm/test/Transforms/Inline/always-inline.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Transforms/Inline/always-inline.ll b/llvm/test/Transforms/Inline/always-inline.ll
index a8703b89877..5ad1bde3e2d 100644
--- a/llvm/test/Transforms/Inline/always-inline.ll
+++ b/llvm/test/Transforms/Inline/always-inline.ll
@@ -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
+}
OpenPOWER on IntegriCloud