Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp447 PHINode *NewPN = 0; in getPHIOperand() local
451 NewPN = PHINode::Create(Opd1->getType(), 2, Opd2->getName() + ".sink", in getPHIOperand()
453 NewPN->addIncoming(Opd1, S0->getParent()); in getPHIOperand()
454 NewPN->addIncoming(Opd2, S1->getParent()); in getPHIOperand()
455 if (NewPN->getType()->getScalarType()->isPointerTy()) { in getPHIOperand()
457 AA->copyValue(Opd1, NewPN); in getPHIOperand()
458 AA->copyValue(Opd2, NewPN); in getPHIOperand()
460 for (unsigned I = 0, E = NewPN->getNumIncomingValues(); I != E; ++I) { in getPHIOperand()
462 AA->addEscapingUse(NewPN->getOperandUse(J)); in getPHIOperand()
465 MD->invalidateCachedPointerInfo(NewPN); in getPHIOperand()
[all …]
DIndVarSimplify.cpp629 PHINode *NewPN = cast<PHINode>(PN->clone()); in RewriteLoopExitValues() local
630 NewPN->takeName(PN); in RewriteLoopExitValues()
631 NewPN->insertBefore(PN); in RewriteLoopExitValues()
632 PN->replaceAllUsesWith(NewPN); in RewriteLoopExitValues()
DScalarReplAggregates.cpp1369 PHINode *NewPN = PHINode::Create(LoadTy, PN->getNumIncomingValues(), in tryToMakeAllocaBePromotable() local
1383 LI->replaceAllUsesWith(NewPN); in tryToMakeAllocaBePromotable()
1402 NewPN->addIncoming(Load, Pred); in tryToMakeAllocaBePromotable()
DSROA.cpp1424 PHINode *NewPN = PHIBuilder.CreatePHI(LoadTy, PN.getNumIncomingValues(), in speculatePHINodeLoads() local
1438 LI->replaceAllUsesWith(NewPN); in speculatePHINodeLoads()
1455 NewPN->addIncoming(Load, Pred); in speculatePHINodeLoads()
1458 DEBUG(dbgs() << " speculated to: " << *NewPN << "\n"); in speculatePHINodeLoads()
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp208 PHINode *NewPN = PHINode::Create(FirstOp->getType(), e, in FoldPHIArgGEPIntoPHI() local
210 InsertNewInstBefore(NewPN, PN); in FoldPHIArgGEPIntoPHI()
212 NewPN->addIncoming(FirstOp, PN.getIncomingBlock(0)); in FoldPHIArgGEPIntoPHI()
213 OperandPhis[i] = NewPN; in FoldPHIArgGEPIntoPHI()
214 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.cpp789 PHINode *NewPN = PHINode::Create(I.getType(), PN->getNumIncomingValues()); in FoldOpIntoPhi() local
790 InsertNewInstBefore(NewPN, *PN); in FoldOpIntoPhi()
791 NewPN->takeName(PN); in FoldOpIntoPhi()
818 NewPN->addIncoming(InV, ThisBB); in FoldOpIntoPhi()
832 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
843 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
855 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
862 ReplaceInstUsesWith(*User, NewPN); in FoldOpIntoPhi()
865 return ReplaceInstUsesWith(I, NewPN); in FoldOpIntoPhi()
1409 PHINode *NewPN = Builder->CreatePHI(Op1->getOperand(DI)->getType(), in visitGetElementPtrInst() local
[all …]
/external/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp82 PHINode *NewPN = PHINode::Create(PN->getType(), 2, PN->getName()+".unr", in ConnectProlog() local
87 NewPN->addIncoming(PN->getIncomingValueForBlock(NewPH), OrigPH); in ConnectProlog()
89 NewPN->addIncoming(Constant::getNullValue(PN->getType()), OrigPH); in ConnectProlog()
100 NewPN->addIncoming(V, LastPrologBB); in ConnectProlog()
106 PN->setIncomingValue(PN->getBasicBlockIndex(NewPH), NewPN); in ConnectProlog()
108 PN->addIncoming(NewPN, PrologEnd); in ConnectProlog()
DLoopSimplify.cpp405 PHINode *NewPN = PHINode::Create(PN->getType(), BackedgeBlocks.size(), in insertUniqueBackedgeBlock() local
407 if (AA) AA->copyValue(PN, NewPN); in insertUniqueBackedgeBlock()
420 NewPN->addIncoming(IV, IBB); in insertUniqueBackedgeBlock()
441 PN->addIncoming(NewPN, BEBlock); in insertUniqueBackedgeBlock()
447 NewPN->replaceAllUsesWith(UniqueValue); in insertUniqueBackedgeBlock()
448 if (AA) AA->deleteValue(NewPN); in insertUniqueBackedgeBlock()
449 BEBlock->getInstList().erase(NewPN); in insertUniqueBackedgeBlock()
DBreakCriticalEdges.cpp104 PHINode *NewPN = in createPHIsForSplitLoopExit() local
109 NewPN->addIncoming(V, Preds[i]); in createPHIsForSplitLoopExit()
112 PN->setIncomingValue(Idx, NewPN); in createPHIsForSplitLoopExit()
DCodeExtractor.cpp248 PHINode *NewPN = PHINode::Create(PN->getType(), 1 + NumPredsFromRegion, in severSplitPHINodes() local
250 NewPN->addIncoming(PN, OldPred); in severSplitPHINodes()
256 NewPN->addIncoming(PN->getIncomingValue(i), PN->getIncomingBlock(i)); in severSplitPHINodes()
DSimplifyCFG.cpp1329 auto &NewPN = JointValueMap[std::make_pair(DifferentOp1, DifferentOp2)]; in SinkThenElseCodeToEnd() local
1330 if (!NewPN) { in SinkThenElseCodeToEnd()
1331 NewPN = in SinkThenElseCodeToEnd()
1334 NewPN->addIncoming(DifferentOp1, BB1); in SinkThenElseCodeToEnd()
1335 NewPN->addIncoming(DifferentOp2, BB2); in SinkThenElseCodeToEnd()
1336 DEBUG(dbgs() << "Create PHI node " << *NewPN << "\n";); in SinkThenElseCodeToEnd()
1339 I1->setOperand(Op1Idx, NewPN); in SinkThenElseCodeToEnd()
2373 PHINode *NewPN = PHINode::Create(Type::getInt1Ty(BB->getContext()), in SimplifyCondBranchToCondBranch() local
2387 NewPN->addIncoming(ConstantInt::get(Type::getInt1Ty(BB->getContext()), in SimplifyCondBranchToCondBranch()
2390 NewPN->addIncoming(BI->getCondition(), P); in SimplifyCondBranchToCondBranch()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp1456 MachineInstr *NewPN = MF->CreateMachineInstr(PD, DL); in createPreheaderForLoop() local
1457 NewPH->insert(NewPH->end(), NewPN); in createPreheaderForLoop()
1462 NewPN->addOperand(MachineOperand::CreateReg(NewPR, true)); in createPreheaderForLoop()
1472 NewPN->addOperand(MachineOperand::CreateReg(PredR, false)); in createPreheaderForLoop()
1473 NewPN->addOperand(MachineOperand::CreateMBB(PredB)); in createPreheaderForLoop()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1180 PHINode *NewPN = in GetHeapSROAValue() local
1184 Result = NewPN; in GetHeapSROAValue()