Add InlineCost class for represent the estimated cost of inlining a
[oota-llvm.git] / test / Transforms / Inline / 2008-10-30-AlwaysInline.ll
1 ; RUN: llvm-as < %s | opt -always-inline | llvm-dis | not grep call 
2
3 ; Ensure that threshold doesn't disrupt always inline.
4 ; RUN: llvm-as < %s | opt -inline-threshold=-2000000001 -always-inline | llvm-dis | not grep call 
5
6
7 define internal i32 @if0() alwaysinline {
8        ret i32 1 
9 }
10
11 define i32 @f0() {
12        %r = call i32 @if0()
13        ret i32 %r
14 }