VirtRegRewriter checks for early clobbers before it reuses an available stack
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 3 Sep 2010 18:36:56 +0000 (18:36 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 3 Sep 2010 18:36:56 +0000 (18:36 +0000)
commit1e3aeefc088db2fe32958eb17f46e60011d34949
treec931ba75d7b4089516142d56d4f060c01ad52e6d
parent82de2e1a2409689f3ae5171a72ee0049e37dfe4c
VirtRegRewriter checks for early clobbers before it reuses an available stack
slot.

Teach it to also check for early clobbered aliases, and early clobber operands
following the current operand.

This fixes the miscompilation in PR8044 where EC registers eax and ecx were
being used for inputs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112988 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/VirtRegRewriter.cpp