/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 207 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 …]
|
D | InstructionCombining.cpp | 660 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/ |
D | LoopUnrollRuntime.cpp | 75 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()
|
D | LoopSimplify.cpp | 688 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()
|
D | BreakCriticalEdges.cpp | 145 PHINode *NewPN = in createPHIsForSplitLoopExit() local 150 NewPN->addIncoming(V, Preds[i]); in createPHIsForSplitLoopExit() 153 PN->setIncomingValue(Idx, NewPN); in createPHIsForSplitLoopExit()
|
D | CodeExtractor.cpp | 246 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()
|
D | SimplifyCFG.cpp | 2110 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/ |
D | IndVarSimplify.cpp | 568 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()
|
D | ScalarReplAggregates.cpp | 1365 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/ |
D | GlobalOpt.cpp | 1372 PHINode *NewPN = in GetHeapSROAValue() local 1376 Result = NewPN; in GetHeapSROAValue()
|