[llvm-commits] [llvm] r51513 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

Evan Cheng evan.cheng at apple.com
Fri May 23 16:00:04 PDT 2008


Author: evancheng
Date: Fri May 23 18:00:04 2008
New Revision: 51513

URL: http://llvm.org/viewvc/llvm-project?rev=51513&view=rev
Log:
Revert 51440 as it breaks a bunch of PIC tests.

Modified:
    llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=51513&r1=51512&r2=51513&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Fri May 23 18:00:04 2008
@@ -1150,9 +1150,7 @@
     }
     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.





More information about the llvm-commits mailing list