Home
last modified time | relevance | path

Searched refs:NewPN (Results 1 – 10 of 10) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp207 PHINode *NewPN = PHINode::Create(FirstOp->getType(), e, in FoldPHIArgGEPIntoPHI() local
209 InsertNewInstBefore(NewPN, PN); in FoldPHIArgGEPIntoPHI()
211 NewPN->addIncoming(FirstOp, PN.getIncomingBlock(0)); in FoldPHIArgGEPIntoPHI()
212 OperandPhis[i] = NewPN; in FoldPHIArgGEPIntoPHI()
213 FixedOperands[i] = NewPN; in FoldPHIArgGEPIntoPHI()
348 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in FoldPHIArgLoadIntoPHI() local
353 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI()
360 NewPN->addIncoming(NewInVal, PN.getIncomingBlock(i)); in FoldPHIArgLoadIntoPHI()
368 delete NewPN; in FoldPHIArgLoadIntoPHI()
370 InsertNewInstBefore(NewPN, PN); in FoldPHIArgLoadIntoPHI()
[all …]
DInstructionCombining.cpp660 PHINode *NewPN = PHINode::Create(I.getType(), PN->getNumIncomingValues()); in FoldOpIntoPhi() local
661 InsertNewInstBefore(NewPN, *PN); in FoldOpIntoPhi()
662 NewPN->takeName(PN); in FoldOpIntoPhi()
686 NewPN->addIncoming(InV, ThisBB); in FoldOpIntoPhi()
700 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
711 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
723 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
731 ReplaceInstUsesWith(*User, NewPN); in FoldOpIntoPhi()
734 return ReplaceInstUsesWith(I, NewPN); in FoldOpIntoPhi()
/external/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp75 PHINode *NewPN = PHINode::Create(PN->getType(), 2, PN->getName()+".unr", in ConnectProlog() local
80 NewPN->addIncoming(PN->getIncomingValueForBlock(NewPH), OrigPH); in ConnectProlog()
82 NewPN->addIncoming(Constant::getNullValue(PN->getType()), OrigPH); in ConnectProlog()
93 NewPN->addIncoming(V, LastPrologBB); in ConnectProlog()
99 PN->setIncomingValue(PN->getBasicBlockIndex(NewPH), NewPN); in ConnectProlog()
101 PN->addIncoming(NewPN, PrologEnd); in ConnectProlog()
DLoopSimplify.cpp688 PHINode *NewPN = PHINode::Create(PN->getType(), BackedgeBlocks.size(), in InsertUniqueBackedgeBlock() local
690 if (AA) AA->copyValue(PN, NewPN); in InsertUniqueBackedgeBlock()
703 NewPN->addIncoming(IV, IBB); in InsertUniqueBackedgeBlock()
724 PN->addIncoming(NewPN, BEBlock); in InsertUniqueBackedgeBlock()
730 NewPN->replaceAllUsesWith(UniqueValue); in InsertUniqueBackedgeBlock()
731 if (AA) AA->deleteValue(NewPN); in InsertUniqueBackedgeBlock()
732 BEBlock->getInstList().erase(NewPN); in InsertUniqueBackedgeBlock()
DBreakCriticalEdges.cpp145 PHINode *NewPN = in createPHIsForSplitLoopExit() local
150 NewPN->addIncoming(V, Preds[i]); in createPHIsForSplitLoopExit()
153 PN->setIncomingValue(Idx, NewPN); in createPHIsForSplitLoopExit()
DCodeExtractor.cpp246 PHINode *NewPN = PHINode::Create(PN->getType(), 1 + NumPredsFromRegion, in severSplitPHINodes() local
248 NewPN->addIncoming(PN, OldPred); in severSplitPHINodes()
254 NewPN->addIncoming(PN->getIncomingValue(i), PN->getIncomingBlock(i)); in severSplitPHINodes()
DSimplifyCFG.cpp2110 PHINode *NewPN = PHINode::Create(Type::getInt1Ty(BB->getContext()), in SimplifyCondBranchToCondBranch() local
2124 NewPN->addIncoming(ConstantInt::get(Type::getInt1Ty(BB->getContext()), in SimplifyCondBranchToCondBranch()
2127 NewPN->addIncoming(BI->getCondition(), P); in SimplifyCondBranchToCondBranch()
2131 BI->setCondition(NewPN); in SimplifyCondBranchToCondBranch()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp568 PHINode *NewPN = cast<PHINode>(PN->clone()); in RewriteLoopExitValues() local
569 NewPN->takeName(PN); in RewriteLoopExitValues()
570 NewPN->insertBefore(PN); in RewriteLoopExitValues()
571 PN->replaceAllUsesWith(NewPN); in RewriteLoopExitValues()
DScalarReplAggregates.cpp1365 PHINode *NewPN = PHINode::Create(LoadTy, PN->getNumIncomingValues(), in tryToMakeAllocaBePromotable() local
1377 LI->replaceAllUsesWith(NewPN); in tryToMakeAllocaBePromotable()
1396 NewPN->addIncoming(Load, Pred); in tryToMakeAllocaBePromotable()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1372 PHINode *NewPN = in GetHeapSROAValue() local
1376 Result = NewPN; in GetHeapSROAValue()