From 68a889757dec7f4b6d7e2e87863f3152bb0603c3 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 19 May 2014 18:25:54 +0000 Subject: Check the alwaysinline attribute on the call as well as on the caller. Differential Revision: http://reviews.llvm.org/D3815 llvm-svn: 209150 --- llvm/test/Transforms/Inline/always-inline.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'llvm/test/Transforms/Inline') 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 +} -- cgit v1.2.3