Do not CopyFromReg physregs for live-in values. Instead, create a vreg for
authorChris Lattner <sabre@nondot.org>
Fri, 13 May 2005 07:38:09 +0000 (07:38 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 May 2005 07:38:09 +0000 (07:38 +0000)
commit63602fb868cd41b35e9896fe021e890c729518e4
tree83083acadd500535e3640bc00e2f29655b5891c4
parent405ef9e28d955c1b107c27bedfd4be8b9165af01
Do not CopyFromReg physregs for live-in values.  Instead, create a vreg for
each live in, and copy the regs from the vregs.  As the very first thing we
do in the function, insert copies from the pregs to the vregs.  This fixes
problems where the token chain of CopyFromReg was not enough to allow reordering
of the copyfromreg nodes and other unchained nodes (e.g. div, which clobbers
eax on intel).

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