Run computeDomForest() on the set of registers that need to be tested for
authorOwen Anderson <resistor@mac.com>
Tue, 13 Nov 2007 20:13:24 +0000 (20:13 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 13 Nov 2007 20:13:24 +0000 (20:13 +0000)
interference.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44064 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/StrongPHIElimination.cpp

index a1654deceb249c9f6c07d2c3c2de7d168fbb85f5..d023b59277a7843100b334fc688a0dc2a5a06f70 100644 (file)
@@ -285,14 +285,15 @@ void StrongPHIElimination::processBlock(MachineBasicBlock* MBB) {
       } else {
         PHIUnion.insert(SrcReg);
         UnionedBlocks.insert(SrcInfo.DefInst->getParent());
-        
-        // DO STUFF HERE
-        
       }
-      
-      ProcessedNames.insert(PHIUnion.begin(), PHIUnion.end());
     }
     
+    std::vector<StrongPHIElimination::DomForestNode*> DF = 
+                                                     computeDomForest(PHIUnion);
+    
+    // DO STUFF HERE
+    
+    ProcessedNames.insert(PHIUnion.begin(), PHIUnion.end());
     ++P;
   }
 }