Move a DenseMap's declaration outside of a loop, and just call
[oota-llvm.git] / test / Transforms / Inline / inline_constprop.ll
1 ; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep callee
2 ; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep div
3
4
5 define internal i32 @callee(i32 %A, i32 %B) {
6         %C = sdiv i32 %A, %B            ; <i32> [#uses=1]
7         ret i32 %C
8 }
9
10 define i32 @test() {
11         %X = call i32 @callee( i32 10, i32 3 )          ; <i32> [#uses=1]
12         ret i32 %X
13 }
14