[llvm-commits] [llvm] r47453 - /llvm/trunk/lib/CodeGen/LiveVariables.cpp

Bill Wendling isanbard at gmail.com
Thu Feb 21 11:35:27 PST 2008


Author: void
Date: Thu Feb 21 13:35:27 2008
New Revision: 47453

URL: http://llvm.org/viewvc/llvm-project?rev=47453&view=rev
Log:
Clear PhysRegPartUse for the sub register as well.

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

Modified: llvm/trunk/lib/CodeGen/LiveVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveVariables.cpp?rev=47453&r1=47452&r2=47453&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/LiveVariables.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveVariables.cpp Thu Feb 21 13:35:27 2008
@@ -246,7 +246,7 @@
   // Now reset the use information for the sub-registers.
   for (const unsigned *SubRegs = RegInfo->getSubRegisters(Reg);
        unsigned SubReg = *SubRegs; ++SubRegs) {
-    // FIXME: Should we do: "PhysRegPartUse[SubReg] = NULL;" here?
+    PhysRegPartUse[SubReg] = NULL;
     PhysRegInfo[SubReg] = MI;
     PhysRegUsed[SubReg] = true;
   }





More information about the llvm-commits mailing list