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

implementation

declare void %bar(int*)

internal void %foo(int* %P) {  ;; to be inlined
  tail call void %bar(int* %P)
  ret void
}

void %caller() {
	%A = alloca int
	call void %foo(int* %A)   ;; not a tail call
	ret void
}