1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

add a note

llvm-svn: 36811
This commit is contained in:
Chris Lattner 2007-05-05 22:44:08 +00:00
parent b9b16cbf97
commit 272510387e

View File

@ -424,3 +424,28 @@ return:
[ %tmp.9, %then.1 ]
ret int %result.0
}
//===---------------------------------------------------------------------===//
Argument promotion should promote arguments for recursive functions, like
this:
; RUN: llvm-upgrade < %s | llvm-as | opt -argpromotion | llvm-dis | grep x.val
implementation ; Functions:
internal int %foo(int* %x) {
entry:
%tmp = load int* %x
%tmp.foo = call int %foo(int *%x)
ret int %tmp.foo
}
int %bar(int* %x) {
entry:
%tmp3 = call int %foo( int* %x) ; <int>[#uses=1]
ret int %tmp3
}