OSDN Git Service

Change the lowering of arguments for tail call optimized
authorArnold Schwaighofer <arnold.schwaighofer@gmail.com>
Tue, 26 Feb 2008 09:19:59 +0000 (09:19 +0000)
committerArnold Schwaighofer <arnold.schwaighofer@gmail.com>
Tue, 26 Feb 2008 09:19:59 +0000 (09:19 +0000)
commit865c68188a72604a15c8b9b08df89d4775c7c764
tree051bcd1b28cf48eef7df821720accb18e328ddba
parentc886c460e4fc305a1b79d1e7782584c7aa7aa91f
Change the lowering of arguments for tail call optimized
calls. Before arguments that could overwrite each other were
explicitly lowered to a stack slot, not giving the register allocator
a chance to optimize. Now a sequence of copyto/copyfrom virtual
registers ensures that arguments are loaded in (virtual) registers
before they are lowered to the stack slot (and might overwrite each
other). Also parameter stack slots are marked mutable for
(potentially) tail calling functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47593 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h