aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/Inline/inline_constprop.ll
blob: 9d5d34170538bebbdebed7ee352d32ead4fbc480 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: opt %s -inline | llvm-dis | not grep callee
; RUN: opt %s -inline | llvm-dis | not grep div


define internal i32 @callee(i32 %A, i32 %B) {
        %C = sdiv i32 %A, %B            ; <i32> [#uses=1]
        ret i32 %C
}

define i32 @test() {
        %X = call i32 @callee( i32 10, i32 3 )          ; <i32> [#uses=1]
        ret i32 %X
}