Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp218 auto *NewPN = PHINode::Create(Opd1->getType(), 2, Opd2->getName() + ".sink", in getPHIOperand() local
220 NewPN->applyMergedLocation(S0->getDebugLoc(), S1->getDebugLoc()); in getPHIOperand()
221 NewPN->addIncoming(Opd1, S0->getParent()); in getPHIOperand()
222 NewPN->addIncoming(Opd2, S1->getParent()); in getPHIOperand()
223 return NewPN; in getPHIOperand()
267 if (PHINode *NewPN = getPHIOperand(BB, S0, S1)) in sinkStoresAndGEPs() local
268 SNew->setOperand(0, NewPN); in sinkStoresAndGEPs()
DCallSiteSplitting.cpp404 PHINode *NewPN = PHINode::Create(CurrentI->getType(), Preds.size()); in splitCallSite() local
405 NewPN->setDebugLoc(CurrentI->getDebugLoc()); in splitCallSite()
407 NewPN->addIncoming(Mapping[CurrentI], in splitCallSite()
409 NewPN->insertBefore(&*TailBB->begin()); in splitCallSite()
410 CurrentI->replaceAllUsesWith(NewPN); in splitCallSite()
DJumpThreading.cpp1992 PHINode *NewPN = PHINode::Create(PN->getType(), 1, PN->getName(), NewBB); in CloneInstructions() local
1993 NewPN->addIncoming(PN->getIncomingValueForBlock(PredBB), PredBB); in CloneInstructions()
1994 ValueMapping[PN] = NewPN; in CloneInstructions()
2616 PHINode *NewPN = PHINode::Create(SI->getType(), 2, "", SI); in TryToUnfoldSelectInCurrBB() local
2617 NewPN->addIncoming(SI->getTrueValue(), Term->getParent()); in TryToUnfoldSelectInCurrBB()
2618 NewPN->addIncoming(SI->getFalseValue(), BB); in TryToUnfoldSelectInCurrBB()
2619 SI->replaceAllUsesWith(NewPN); in TryToUnfoldSelectInCurrBB()
2752 PHINode *NewPN = PHINode::Create(Inst->getType(), 2); in ThreadGuard() local
2753 NewPN->addIncoming(UnguardedMapping[Inst], UnguardedBlock); in ThreadGuard()
2754 NewPN->addIncoming(GuardedMapping[Inst], GuardedBlock); in ThreadGuard()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp218 auto *NewPN = PHINode::Create(Opd1->getType(), 2, Opd2->getName() + ".sink", in getPHIOperand() local
220 NewPN->applyMergedLocation(S0->getDebugLoc(), S1->getDebugLoc()); in getPHIOperand()
221 NewPN->addIncoming(Opd1, S0->getParent()); in getPHIOperand()
222 NewPN->addIncoming(Opd2, S1->getParent()); in getPHIOperand()
223 return NewPN; in getPHIOperand()
267 if (PHINode *NewPN = getPHIOperand(BB, S0, S1)) in sinkStoresAndGEPs() local
268 SNew->setOperand(0, NewPN); in sinkStoresAndGEPs()
DCallSiteSplitting.cpp400 PHINode *NewPN = PHINode::Create(CurrentI->getType(), Preds.size()); in splitCallSite() local
401 NewPN->setDebugLoc(CurrentI->getDebugLoc()); in splitCallSite()
403 NewPN->addIncoming(Mapping[CurrentI], in splitCallSite()
405 NewPN->insertBefore(&*TailBB->begin()); in splitCallSite()
406 CurrentI->replaceAllUsesWith(NewPN); in splitCallSite()
DJumpThreading.cpp2064 PHINode *NewPN = PHINode::Create(PN->getType(), 1, PN->getName(), NewBB); in cloneInstructions() local
2065 NewPN->addIncoming(PN->getIncomingValueForBlock(PredBB), PredBB); in cloneInstructions()
2066 ValueMapping[PN] = NewPN; in cloneInstructions()
2893 PHINode *NewPN = PHINode::Create(SI->getType(), 2, "", SI); in tryToUnfoldSelectInCurrBB() local
2894 NewPN->addIncoming(SI->getTrueValue(), Term->getParent()); in tryToUnfoldSelectInCurrBB()
2895 NewPN->addIncoming(SI->getFalseValue(), BB); in tryToUnfoldSelectInCurrBB()
2896 SI->replaceAllUsesWith(NewPN); in tryToUnfoldSelectInCurrBB()
3029 PHINode *NewPN = PHINode::Create(Inst->getType(), 2); in threadGuard() local
3030 NewPN->addIncoming(UnguardedMapping[Inst], UnguardedBlock); in threadGuard()
3031 NewPN->addIncoming(GuardedMapping[Inst], GuardedBlock); in threadGuard()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp198 PHINode *NewPN = PHINode::Create(FirstOp->getType(), e, in FoldPHIArgGEPIntoPHI() local
200 InsertNewInstBefore(NewPN, PN); in FoldPHIArgGEPIntoPHI()
202 NewPN->addIncoming(FirstOp, PN.getIncomingBlock(0)); in FoldPHIArgGEPIntoPHI()
203 OperandPhis[i] = NewPN; in FoldPHIArgGEPIntoPHI()
204 FixedOperands[i] = NewPN; in FoldPHIArgGEPIntoPHI()
337 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in FoldPHIArgLoadIntoPHI() local
342 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI()
343 LoadInst *NewLI = new LoadInst(NewPN, "", isVolatile, LoadAlignment); in FoldPHIArgLoadIntoPHI()
367 NewPN->addIncoming(NewInVal, PN.getIncomingBlock(i)); in FoldPHIArgLoadIntoPHI()
374 delete NewPN; in FoldPHIArgLoadIntoPHI()
[all …]
DInstructionCombining.cpp845 PHINode *NewPN = PHINode::Create(I.getType(), PN->getNumIncomingValues()); in FoldOpIntoPhi() local
846 InsertNewInstBefore(NewPN, *PN); in FoldOpIntoPhi()
847 NewPN->takeName(PN); in FoldOpIntoPhi()
874 NewPN->addIncoming(InV, ThisBB); in FoldOpIntoPhi()
888 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
899 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
911 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
918 replaceInstUsesWith(*User, NewPN); in FoldOpIntoPhi()
921 return replaceInstUsesWith(I, NewPN); in FoldOpIntoPhi()
1461 PHINode *NewPN; in visitGetElementPtrInst() local
[all …]
/external/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp83 PHINode *NewPN = PHINode::Create(PN->getType(), 2, PN->getName() + ".unr", in ConnectProlog() local
88 NewPN->addIncoming(PN->getIncomingValueForBlock(NewPreHeader), in ConnectProlog()
91 NewPN->addIncoming(UndefValue::get(PN->getType()), PreHeader); in ConnectProlog()
102 NewPN->addIncoming(V, PrologLatch); in ConnectProlog()
108 PN->setIncomingValue(PN->getBasicBlockIndex(NewPreHeader), NewPN); in ConnectProlog()
110 PN->addIncoming(NewPN, PrologExit); in ConnectProlog()
233 PHINode *NewPN = PHINode::Create(PN->getType(), 2, PN->getName() + ".unr", in ConnectEpilog() local
236 NewPN->addIncoming(PN->getIncomingValueForBlock(NewPreHeader), PreHeader); in ConnectEpilog()
238 NewPN->addIncoming(PN->getIncomingValueForBlock(Latch), Latch); in ConnectEpilog()
243 VPN->setIncomingValue(VPN->getBasicBlockIndex(EpilogPreHeader), NewPN); in ConnectEpilog()
DBreakCriticalEdges.cpp103 PHINode *NewPN = PHINode::Create( in createPHIsForSplitLoopExit() local
107 NewPN->addIncoming(V, Preds[i]); in createPHIsForSplitLoopExit()
110 PN->setIncomingValue(Idx, NewPN); in createPHIsForSplitLoopExit()
DLoopSimplify.cpp396 PHINode *NewPN = PHINode::Create(PN->getType(), BackedgeBlocks.size(), in insertUniqueBackedgeBlock() local
410 NewPN->addIncoming(IV, IBB); in insertUniqueBackedgeBlock()
431 PN->addIncoming(NewPN, BEBlock); in insertUniqueBackedgeBlock()
437 NewPN->replaceAllUsesWith(UniqueValue); in insertUniqueBackedgeBlock()
438 BEBlock->getInstList().erase(NewPN); in insertUniqueBackedgeBlock()
DCodeExtractor.cpp243 PHINode *NewPN = PHINode::Create(PN->getType(), 1 + NumPredsFromRegion, in severSplitPHINodes() local
245 NewPN->addIncoming(PN, OldPred); in severSplitPHINodes()
251 NewPN->addIncoming(PN->getIncomingValue(i), PN->getIncomingBlock(i)); in severSplitPHINodes()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp465 PHINode *NewPN = PHINode::Create(FirstOp->getType(), e, in FoldPHIArgGEPIntoPHI() local
467 InsertNewInstBefore(NewPN, PN); in FoldPHIArgGEPIntoPHI()
469 NewPN->addIncoming(FirstOp, PN.getIncomingBlock(0)); in FoldPHIArgGEPIntoPHI()
470 OperandPhis[i] = NewPN; in FoldPHIArgGEPIntoPHI()
471 FixedOperands[i] = NewPN; in FoldPHIArgGEPIntoPHI()
604 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in FoldPHIArgLoadIntoPHI() local
609 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI()
611 new LoadInst(FirstLI->getType(), NewPN, "", isVolatile, LoadAlignment); in FoldPHIArgLoadIntoPHI()
636 NewPN->addIncoming(NewInVal, PN.getIncomingBlock(i)); in FoldPHIArgLoadIntoPHI()
643 delete NewPN; in FoldPHIArgLoadIntoPHI()
[all …]
DInstructionCombining.cpp1018 PHINode *NewPN = PHINode::Create(I.getType(), PN->getNumIncomingValues()); in foldOpIntoPhi() local
1019 InsertNewInstBefore(NewPN, *PN); in foldOpIntoPhi()
1020 NewPN->takeName(PN); in foldOpIntoPhi()
1061 NewPN->addIncoming(InV, ThisBB); in foldOpIntoPhi()
1075 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in foldOpIntoPhi()
1081 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in foldOpIntoPhi()
1093 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in foldOpIntoPhi()
1100 replaceInstUsesWith(*User, NewPN); in foldOpIntoPhi()
1103 return replaceInstUsesWith(I, NewPN); in foldOpIntoPhi()
1817 PHINode *NewPN; in visitGetElementPtrInst() local
[all …]
/external/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp409 auto *NewPN = PHINode::Create(Opd1->getType(), 2, Opd2->getName() + ".sink", in getPHIOperand() local
411 NewPN->addIncoming(Opd1, S0->getParent()); in getPHIOperand()
412 NewPN->addIncoming(Opd2, S1->getParent()); in getPHIOperand()
413 if (MD && NewPN->getType()->getScalarType()->isPointerTy()) in getPHIOperand()
414 MD->invalidateCachedPointerInfo(NewPN); in getPHIOperand()
415 return NewPN; in getPHIOperand()
450 if (PHINode *NewPN = getPHIOperand(BB, S0, S1)) in sinkStore() local
451 SNew->setOperand(0, NewPN); in sinkStore()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp552 PHINode *NewPN = PHINode::Create(FirstOp->getType(), e, in foldPHIArgGEPIntoPHI() local
554 InsertNewInstBefore(NewPN, PN); in foldPHIArgGEPIntoPHI()
556 NewPN->addIncoming(FirstOp, PN.getIncomingBlock(0)); in foldPHIArgGEPIntoPHI()
557 OperandPhis[i] = NewPN; in foldPHIArgGEPIntoPHI()
558 FixedOperands[i] = NewPN; in foldPHIArgGEPIntoPHI()
685 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in foldPHIArgLoadIntoPHI() local
690 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in foldPHIArgLoadIntoPHI()
692 new LoadInst(FirstLI->getType(), NewPN, "", isVolatile, LoadAlignment); in foldPHIArgLoadIntoPHI()
717 NewPN->addIncoming(NewInVal, PN.getIncomingBlock(i)); in foldPHIArgLoadIntoPHI()
724 delete NewPN; in foldPHIArgLoadIntoPHI()
[all …]
DInstructionCombining.cpp1094 PHINode *NewPN = PHINode::Create(I.getType(), PN->getNumIncomingValues()); in foldOpIntoPhi() local
1095 InsertNewInstBefore(NewPN, *PN); in foldOpIntoPhi()
1096 NewPN->takeName(PN); in foldOpIntoPhi()
1137 NewPN->addIncoming(InV, ThisBB); in foldOpIntoPhi()
1148 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in foldOpIntoPhi()
1154 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in foldOpIntoPhi()
1163 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in foldOpIntoPhi()
1175 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in foldOpIntoPhi()
1182 replaceInstUsesWith(*User, NewPN); in foldOpIntoPhi()
1185 return replaceInstUsesWith(I, NewPN); in foldOpIntoPhi()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp102 PHINode *NewPN = PHINode::Create(PN.getType(), 2, PN.getName() + ".unr", in ConnectProlog() local
108 NewPN->addIncoming(PN.getIncomingValueForBlock(NewPreHeader), in ConnectProlog()
112 NewPN->addIncoming(UndefValue::get(PN.getType()), PreHeader); in ConnectProlog()
123 NewPN->addIncoming(V, PrologLatch); in ConnectProlog()
129 PN.setIncomingValueForBlock(NewPreHeader, NewPN); in ConnectProlog()
131 PN.addIncoming(NewPN, PrologExit); in ConnectProlog()
257 PHINode *NewPN = PHINode::Create(PN.getType(), 2, PN.getName() + ".unr", in ConnectEpilog() local
260 NewPN->addIncoming(PN.getIncomingValueForBlock(NewPreHeader), PreHeader); in ConnectEpilog()
262 NewPN->addIncoming(PN.getIncomingValueForBlock(Latch), Latch); in ConnectEpilog()
267 VPN->setIncomingValueForBlock(EpilogPreHeader, NewPN); in ConnectEpilog()
DBreakCriticalEdges.cpp126 PHINode *NewPN = PHINode::Create( in createPHIsForSplitLoopExit() local
130 NewPN->addIncoming(V, Preds[i]); in createPHIsForSplitLoopExit()
133 PN.setIncomingValue(Idx, NewPN); in createPHIsForSplitLoopExit()
DLoopSimplify.cpp394 PHINode *NewPN = PHINode::Create(PN->getType(), BackedgeBlocks.size(), in insertUniqueBackedgeBlock() local
408 NewPN->addIncoming(IV, IBB); in insertUniqueBackedgeBlock()
429 PN->addIncoming(NewPN, BEBlock); in insertUniqueBackedgeBlock()
435 NewPN->replaceAllUsesWith(UniqueValue); in insertUniqueBackedgeBlock()
436 BEBlock->getInstList().erase(NewPN); in insertUniqueBackedgeBlock()
DCodeExtractor.cpp676 PHINode *NewPN = PHINode::Create(PN->getType(), 1 + NumPredsFromRegion, in severSplitPHINodesOfEntry() local
678 PN->replaceAllUsesWith(NewPN); in severSplitPHINodesOfEntry()
679 NewPN->addIncoming(PN, OldPred); in severSplitPHINodesOfEntry()
685 NewPN->addIncoming(PN->getIncomingValue(i), PN->getIncomingBlock(i)); in severSplitPHINodesOfEntry()
732 PHINode *NewPN = in severSplitPHINodesOfExits() local
736 NewPN->addIncoming(PN.getIncomingValue(i), PN.getIncomingBlock(i)); in severSplitPHINodesOfExits()
739 PN.addIncoming(NewPN, NewBB); in severSplitPHINodesOfExits()
/external/llvm-project/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp103 PHINode *NewPN = PHINode::Create(PN.getType(), 2, PN.getName() + ".unr", in ConnectProlog() local
109 NewPN->addIncoming(PN.getIncomingValueForBlock(NewPreHeader), in ConnectProlog()
113 NewPN->addIncoming(UndefValue::get(PN.getType()), PreHeader); in ConnectProlog()
124 NewPN->addIncoming(V, PrologLatch); in ConnectProlog()
130 PN.setIncomingValueForBlock(NewPreHeader, NewPN); in ConnectProlog()
132 PN.addIncoming(NewPN, PrologExit); in ConnectProlog()
258 PHINode *NewPN = PHINode::Create(PN.getType(), 2, PN.getName() + ".unr", in ConnectEpilog() local
261 NewPN->addIncoming(PN.getIncomingValueForBlock(NewPreHeader), PreHeader); in ConnectEpilog()
263 NewPN->addIncoming(PN.getIncomingValueForBlock(Latch), Latch); in ConnectEpilog()
268 VPN->setIncomingValueForBlock(EpilogPreHeader, NewPN); in ConnectEpilog()
DBreakCriticalEdges.cpp126 PHINode *NewPN = PHINode::Create( in createPHIsForSplitLoopExit() local
130 NewPN->addIncoming(V, Preds[i]); in createPHIsForSplitLoopExit()
133 PN.setIncomingValue(Idx, NewPN); in createPHIsForSplitLoopExit()
DLoopSimplify.cpp413 PHINode *NewPN = PHINode::Create(PN->getType(), BackedgeBlocks.size(), in insertUniqueBackedgeBlock() local
427 NewPN->addIncoming(IV, IBB); in insertUniqueBackedgeBlock()
448 PN->addIncoming(NewPN, BEBlock); in insertUniqueBackedgeBlock()
454 NewPN->replaceAllUsesWith(UniqueValue); in insertUniqueBackedgeBlock()
455 BEBlock->getInstList().erase(NewPN); in insertUniqueBackedgeBlock()
DCodeExtractor.cpp725 PHINode *NewPN = PHINode::Create(PN->getType(), 1 + NumPredsFromRegion, in severSplitPHINodesOfEntry() local
727 PN->replaceAllUsesWith(NewPN); in severSplitPHINodesOfEntry()
728 NewPN->addIncoming(PN, OldPred); in severSplitPHINodesOfEntry()
734 NewPN->addIncoming(PN->getIncomingValue(i), PN->getIncomingBlock(i)); in severSplitPHINodesOfEntry()
781 PHINode *NewPN = in severSplitPHINodesOfExits() local
785 NewPN->addIncoming(PN.getIncomingValue(i), PN.getIncomingBlock(i)); in severSplitPHINodesOfExits()
788 PN.addIncoming(NewPN, NewBB); in severSplitPHINodesOfExits()

12