mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 08:44:48 +00:00
Make sure to not accidentally get a bogus tail marker
llvm-svn: 21735
This commit is contained in:
parent
3d4098b1e0
commit
170a0f7d6b
16
test/Regression/Transforms/Inline/inline-tail.ll
Normal file
16
test/Regression/Transforms/Inline/inline-tail.ll
Normal file
@ -0,0 +1,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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user