Displaying 1 result from an estimated 1 matches for "_hoge".
Did you mean:
hoge
2013 Aug 02
2
[LLVMdev] bug of tail call optimization on x86 target
...0, i32* %a
%d = tail call i32* @bar(i32* %a) nounwind
store i32 %b, i32* %d
tail call fastcc void @foo(i32 1, i32 2, i32 3, i32 4, i32 5, i32 6) nounwind
ret void
}
LLVM produces the following x86 code against the above source:
% llc -tailcallopt -filetype=asm -disable-cfi -o - bug.ll
...
_hoge: ## @hoge
## BB#0:
subl $16, %esp
pushl %esi ;;;; this preserves %esi, but
subl $40, %esp
movl %ecx, %esi
movl $0, 40(%esp) ;;;; this overwrites preserved %esi
leal 40(%esp), %eax...