Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp442 PHINode *NewPN = nullptr; in getPHIOperand() local
446 NewPN = PHINode::Create(Opd1->getType(), 2, Opd2->getName() + ".sink", in getPHIOperand()
448 NewPN->addIncoming(Opd1, S0->getParent()); in getPHIOperand()
449 NewPN->addIncoming(Opd2, S1->getParent()); in getPHIOperand()
450 if (MD && NewPN->getType()->getScalarType()->isPointerTy()) in getPHIOperand()
451 MD->invalidateCachedPointerInfo(NewPN); in getPHIOperand()
453 return NewPN; in getPHIOperand()
487 PHINode *NewPN = getPHIOperand(BB, S0, S1); in sinkStore() local
489 if (NewPN) in sinkStore()
490 SNew->setOperand(0, NewPN); in sinkStore()
DScalarReplAggregates.cpp1370 PHINode *NewPN = PHINode::Create(LoadTy, PN->getNumIncomingValues(), in tryToMakeAllocaBePromotable() local
1384 LI->replaceAllUsesWith(NewPN); in tryToMakeAllocaBePromotable()
1403 NewPN->addIncoming(Load, Pred); in tryToMakeAllocaBePromotable()
DSROA.cpp1210 PHINode *NewPN = PHIBuilder.CreatePHI(LoadTy, PN.getNumIncomingValues(), in speculatePHINodeLoads() local
1224 LI->replaceAllUsesWith(NewPN); in speculatePHINodeLoads()
1241 NewPN->addIncoming(Load, Pred); in speculatePHINodeLoads()
1244 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()
347 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in FoldPHIArgLoadIntoPHI() local
352 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI()
353 LoadInst *NewLI = new LoadInst(NewPN, "", isVolatile, LoadAlignment); in FoldPHIArgLoadIntoPHI()
377 NewPN->addIncoming(NewInVal, PN.getIncomingBlock(i)); in FoldPHIArgLoadIntoPHI()
384 delete NewPN; in FoldPHIArgLoadIntoPHI()
[all …]
DInstructionCombining.cpp849 PHINode *NewPN = PHINode::Create(I.getType(), PN->getNumIncomingValues()); in FoldOpIntoPhi() local
850 InsertNewInstBefore(NewPN, *PN); in FoldOpIntoPhi()
851 NewPN->takeName(PN); in FoldOpIntoPhi()
878 NewPN->addIncoming(InV, ThisBB); in FoldOpIntoPhi()
892 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
903 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
915 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
922 ReplaceInstUsesWith(*User, NewPN); in FoldOpIntoPhi()
925 return ReplaceInstUsesWith(I, NewPN); in FoldOpIntoPhi()
1464 PHINode *NewPN; 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(UndefValue::get(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()
DBreakCriticalEdges.cpp104 PHINode *NewPN = PHINode::Create( in createPHIsForSplitLoopExit() local
108 NewPN->addIncoming(V, Preds[i]); in createPHIsForSplitLoopExit()
111 PN->setIncomingValue(Idx, NewPN); in createPHIsForSplitLoopExit()
DLoopSimplify.cpp395 PHINode *NewPN = PHINode::Create(PN->getType(), BackedgeBlocks.size(), in insertUniqueBackedgeBlock() local
409 NewPN->addIncoming(IV, IBB); in insertUniqueBackedgeBlock()
430 PN->addIncoming(NewPN, BEBlock); in insertUniqueBackedgeBlock()
436 NewPN->replaceAllUsesWith(UniqueValue); in insertUniqueBackedgeBlock()
437 BEBlock->getInstList().erase(NewPN); in insertUniqueBackedgeBlock()
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.cpp1350 auto &NewPN = JointValueMap[std::make_pair(DifferentOp1, DifferentOp2)]; in SinkThenElseCodeToEnd() local
1351 if (!NewPN) { in SinkThenElseCodeToEnd()
1352 NewPN = in SinkThenElseCodeToEnd()
1355 NewPN->addIncoming(DifferentOp1, BB1); in SinkThenElseCodeToEnd()
1356 NewPN->addIncoming(DifferentOp2, BB2); in SinkThenElseCodeToEnd()
1357 DEBUG(dbgs() << "Create PHI node " << *NewPN << "\n";); in SinkThenElseCodeToEnd()
1360 I1->setOperand(Op1Idx, NewPN); in SinkThenElseCodeToEnd()
2682 PHINode *NewPN = PHINode::Create( in SimplifyCondBranchToCondBranch() local
2695 NewPN->addIncoming(ConstantInt::get(Type::getInt1Ty(BB->getContext()), in SimplifyCondBranchToCondBranch()
2698 NewPN->addIncoming(BI->getCondition(), P); in SimplifyCondBranchToCondBranch()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp1864 MachineInstr *NewPN = MF->CreateMachineInstr(PD, DL); in createPreheaderForLoop() local
1865 NewPH->insert(NewPH->end(), NewPN); in createPreheaderForLoop()
1870 NewPN->addOperand(MachineOperand::CreateReg(NewPR, true)); in createPreheaderForLoop()
1883 NewPN->addOperand(MO); in createPreheaderForLoop()
1884 NewPN->addOperand(MachineOperand::CreateMBB(PredB)); in createPreheaderForLoop()
/external/llvm/lib/CodeGen/
DWinEHPrepare.cpp688 auto *NewPN = dyn_cast<PHINode>(&NewI); in cloneCommonBlocks() local
689 if (!NewPN) in cloneCommonBlocks()
691 UpdatePHIOnClonedBlock(NewPN, /*IsForOldBlock=*/false); in cloneCommonBlocks()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1180 PHINode *NewPN = in GetHeapSROAValue() local
1184 Result = NewPN; in GetHeapSROAValue()