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

Evan Cheng evan.cheng at apple.com
Fri Feb 22 18:14:42 PST 2008


Author: evancheng
Date: Fri Feb 22 20:14:42 2008
New Revision: 47526

URL: http://llvm.org/viewvc/llvm-project?rev=47526&view=rev
Log:
If remating a machine instr with virtual register operand, make sure the vr is avaliable at all uses regardless of whether it would be folded.

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=47526&r1=47525&r2=47526&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Fri Feb 22 20:14:42 2008
@@ -680,8 +680,7 @@
         unsigned UseIdx = getInstructionIndex(UseMI);
         if (li.FindLiveRangeContaining(UseIdx)->valno != ValNo)
           continue;
-        if (!canFoldMemoryOperand(UseMI, li.reg) &&
-            !isValNoAvailableAt(ImpLi, MI, UseIdx))
+        if (!isValNoAvailableAt(ImpLi, MI, UseIdx))
           return false;
       }
     }





More information about the llvm-commits mailing list