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

implementation

internal int %callee(int %A, int %B) {
	%C = div int %A, %B
	ret int %C
}

int %test() {
	%X = call int %callee(int 10, int 3)
	ret int %X
}