Improve a few comments.
authorOwen Anderson <resistor@mac.com>
Mon, 21 Jan 2008 22:01:01 +0000 (22:01 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 21 Jan 2008 22:01:01 +0000 (22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46217 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/StrongPHIElimination.cpp

index e5cae2bc723bf14c396f47c380098b5b3d22ecb9..ff58e796bf5e7cf3e51f8a1065ea53321e6b68f6 100644 (file)
@@ -550,7 +550,9 @@ void StrongPHIElimination::processPHIUnion(MachineInstr* Inst,
     for (DomForestNode::iterator CI = DFNode->begin(), CE = DFNode->end();
          CI != CE; ++CI) {
       DomForestNode* child = *CI;   
-        
+      
+      // If the current node is live-out of the defining block of one of its
+      // children, insert a copy for it
       if (isLiveOut(DFNode->getReg(),
           MRI.getVRegDef(child->getReg())->getParent(), MRI, LV)) {
         // Insert copies for parent
@@ -565,6 +567,9 @@ void StrongPHIElimination::processPHIUnion(MachineInstr* Inst,
             PHIUnion.erase(SrcReg);
           }
         }
+      
+      // If a node is live-in to the defining block of one of its children, but
+      // not live-out, then we need to scan that block for local interferences.
       } else if (isLiveIn(DFNode->getReg(),
                           MRI.getVRegDef(child->getReg())->getParent(),
                           MRI, LV) ||