[llvm-commits] [llvm] r102976 - /llvm/trunk/lib/CodeGen/RegAllocLocal.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon May 3 16:49:21 PDT 2010


Author: stoklund
Date: Mon May  3 18:49:20 2010
New Revision: 102976

URL: http://llvm.org/viewvc/llvm-project?rev=102976&view=rev
Log:
Remove preexisting kill flags in RegAllocLocal, just like LiveVariables does.

This should make it possible to start producing kill flags in isel without
breaking stuff.

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

Modified: llvm/trunk/lib/CodeGen/RegAllocLocal.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocLocal.cpp?rev=102976&r1=102975&r2=102976&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocLocal.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocLocal.cpp Mon May  3 18:49:20 2010
@@ -643,7 +643,10 @@
       // uses regs before it defs them.
       if (!MO.isReg() || !MO.getReg() || !MO.isUse())
         continue;
-      
+
+      // Ignore helpful kill flags from earlier passes.
+      MO.setIsKill(false);
+
       LastUseDef[MO.getReg()] = std::make_pair(I, i);
       
       if (TargetRegisterInfo::isVirtualRegister(MO.getReg())) continue;





More information about the llvm-commits mailing list