Revert 51440 as it breaks a bunch of PIC tests.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 23 May 2008 23:00:04 +0000 (23:00 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 23 May 2008 23:00:04 +0000 (23:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51513 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index 4997302fa6a5f31aaf26fd3e8ae4f46b058876ce..2558b09ad60f124b9c1dc460f0cd3332893cfac1 100644 (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.