Maintain ETNode as part of DomTreeNode.
This adds redundancy for now. llvm-svn: 37492
This commit is contained in:
@@ -157,7 +157,7 @@ void LCSSA::ProcessInstruction(Instruction *Instr,
|
||||
BasicBlock *BB = *BBI;
|
||||
DomTreeNode *ExitBBNode = DT->getNode(BB);
|
||||
Value *&Phi = Phis[ExitBBNode];
|
||||
if (!Phi && InstrNode->dominates(ExitBBNode)) {
|
||||
if (!Phi && DT->dominates(InstrNode, ExitBBNode)) {
|
||||
PHINode *PN = new PHINode(Instr->getType(), Instr->getName()+".lcssa",
|
||||
BB->begin());
|
||||
PN->reserveOperandSpace(std::distance(pred_begin(BB), pred_end(BB)));
|
||||
|
||||
Reference in New Issue
Block a user