Revert 51440 as it breaks a bunch of PIC tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51513 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2008-05-23 23:00:04 +00:00
parent ade5faa83f
commit 0a891ed7d5

View File

@ -1150,9 +1150,7 @@ rewriteInstructionsForSpills(const LiveInterval &li, bool TrySplit,
}
MachineBasicBlock *MBB = MI->getParent();
// ReMatDefMI is a clone and not in the IR at all, so check
// RefMatOrigDefMI too.
if (ImpUse && MI != ReMatDefMI && MI != ReMatOrigDefMI) {
if (ImpUse && MI != ReMatDefMI) {
// Re-matting an instruction with virtual register use. Update the
// register interval's spill weight to HUGE_VALF to prevent it from
// being spilled.