diff options
author | Eric Christopher <echristo@apple.com> | 2010-03-25 04:49:10 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-03-25 04:49:10 +0000 |
commit | f27e6088a3af277d5aeed7b554192cc62b7b40fd (patch) | |
tree | 7ca0b6f14a80866154443d116693c7b80c622363 /test/Transforms | |
parent | 3d7d07ef038696cefcaf3ce5335072964199a78d (diff) | |
download | external_llvm-f27e6088a3af277d5aeed7b554192cc62b7b40fd.zip external_llvm-f27e6088a3af277d5aeed7b554192cc62b7b40fd.tar.gz external_llvm-f27e6088a3af277d5aeed7b554192cc62b7b40fd.tar.bz2 |
Reapply r99451 with a fix to move the NoInline check to the cost functions
instead of InlineFunction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/Inline/noinline.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Transforms/Inline/noinline.ll b/test/Transforms/Inline/noinline.ll new file mode 100644 index 0000000..dc3f6e0 --- /dev/null +++ b/test/Transforms/Inline/noinline.ll @@ -0,0 +1,18 @@ +; RUN: opt %s -inline -S | FileCheck %s +; PR6682 +declare void @foo() nounwind + +define void @bar() nounwind { +entry: + tail call void @foo() nounwind + ret void +} + +define void @bazz() nounwind { +entry: + tail call void @bar() nounwind noinline + ret void +} + +; CHECK: define void @bazz() +; CHECK: call void @bar() |