Revert 51440 as it breaks a bunch of PIC tests.

llvm-svn: 51513
This commit is contained in:
Evan Cheng 2008-05-23 23:00:04 +00:00
parent da52d216e6
commit 7c0db62a5e
1 changed files with 1 additions and 3 deletions

View File

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