Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/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.cpp651 PHINode *NewPN = PHINode::Create(I.getType(), PN->getNumIncomingValues()); in FoldOpIntoPhi() local
652 InsertNewInstBefore(NewPN, *PN); in FoldOpIntoPhi()
653 NewPN->takeName(PN); in FoldOpIntoPhi()
677 NewPN->addIncoming(InV, ThisBB); in FoldOpIntoPhi()
691 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
702 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
714 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in FoldOpIntoPhi()
722 ReplaceInstUsesWith(*User, NewPN); in FoldOpIntoPhi()
725 return ReplaceInstUsesWith(I, NewPN); in FoldOpIntoPhi()
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp212 auto *NewPN = PHINode::Create(Opd1->getType(), 2, Opd2->getName() + ".sink", in getPHIOperand() local
214 NewPN->addIncoming(Opd1, S0->getParent()); in getPHIOperand()
215 NewPN->addIncoming(Opd2, S1->getParent()); in getPHIOperand()
216 return NewPN; in getPHIOperand()
251 if (PHINode *NewPN = getPHIOperand(BB, S0, S1)) in sinkStore() local
252 SNew->setOperand(0, NewPN); in sinkStore()
DCallSiteSplitting.cpp396 PHINode *NewPN = PHINode::Create(CurrentI->getType(), Preds.size()); in splitCallSite() local
398 NewPN->addIncoming(Mapping[CurrentI], in splitCallSite()
400 NewPN->insertBefore(&*TailBB->begin()); in splitCallSite()
401 CurrentI->replaceAllUsesWith(NewPN); in splitCallSite()
DJumpThreading.cpp2540 PHINode *NewPN = PHINode::Create(SI->getType(), 2, "", SI); in TryToUnfoldSelectInCurrBB() local
2541 NewPN->addIncoming(SI->getTrueValue(), Term->getParent()); in TryToUnfoldSelectInCurrBB()
2542 NewPN->addIncoming(SI->getFalseValue(), BB); in TryToUnfoldSelectInCurrBB()
2543 SI->replaceAllUsesWith(NewPN); in TryToUnfoldSelectInCurrBB()
2689 PHINode *NewPN = PHINode::Create(Inst->getType(), 2); in ThreadGuard() local
2690 NewPN->addIncoming(UnguardedMapping[Inst], UnguardedBlock); in ThreadGuard()
2691 NewPN->addIncoming(GuardedMapping[Inst], GuardedBlock); in ThreadGuard()
2692 NewPN->insertBefore(InsertionPoint); in ThreadGuard()
2693 Inst->replaceAllUsesWith(NewPN); in ThreadGuard()
/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-7.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp454 PHINode *NewPN = PHINode::Create(FirstOp->getType(), e, in FoldPHIArgGEPIntoPHI() local
456 InsertNewInstBefore(NewPN, PN); in FoldPHIArgGEPIntoPHI()
458 NewPN->addIncoming(FirstOp, PN.getIncomingBlock(0)); in FoldPHIArgGEPIntoPHI()
459 OperandPhis[i] = NewPN; in FoldPHIArgGEPIntoPHI()
460 FixedOperands[i] = NewPN; in FoldPHIArgGEPIntoPHI()
593 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in FoldPHIArgLoadIntoPHI() local
598 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI()
599 LoadInst *NewLI = new LoadInst(NewPN, "", isVolatile, LoadAlignment); in FoldPHIArgLoadIntoPHI()
623 NewPN->addIncoming(NewInVal, PN.getIncomingBlock(i)); in FoldPHIArgLoadIntoPHI()
630 delete NewPN; in FoldPHIArgLoadIntoPHI()
[all …]
DInstructionCombining.cpp938 PHINode *NewPN = PHINode::Create(I.getType(), PN->getNumIncomingValues()); in foldOpIntoPhi() local
939 InsertNewInstBefore(NewPN, *PN); in foldOpIntoPhi()
940 NewPN->takeName(PN); in foldOpIntoPhi()
981 NewPN->addIncoming(InV, ThisBB); in foldOpIntoPhi()
995 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in foldOpIntoPhi()
1001 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in foldOpIntoPhi()
1013 NewPN->addIncoming(InV, PN->getIncomingBlock(i)); in foldOpIntoPhi()
1020 replaceInstUsesWith(*User, NewPN); in foldOpIntoPhi()
1023 return replaceInstUsesWith(I, NewPN); in foldOpIntoPhi()
1575 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp86 PHINode *NewPN = PHINode::Create(PN.getType(), 2, PN.getName() + ".unr", in ConnectProlog() local
91 NewPN->addIncoming(PN.getIncomingValueForBlock(NewPreHeader), in ConnectProlog()
94 NewPN->addIncoming(UndefValue::get(PN.getType()), PreHeader); in ConnectProlog()
105 NewPN->addIncoming(V, PrologLatch); in ConnectProlog()
111 PN.setIncomingValue(PN.getBasicBlockIndex(NewPreHeader), NewPN); in ConnectProlog()
113 PN.addIncoming(NewPN, PrologExit); in ConnectProlog()
240 PHINode *NewPN = PHINode::Create(PN.getType(), 2, PN.getName() + ".unr", in ConnectEpilog() local
243 NewPN->addIncoming(PN.getIncomingValueForBlock(NewPreHeader), PreHeader); in ConnectEpilog()
245 NewPN->addIncoming(PN.getIncomingValueForBlock(Latch), Latch); in ConnectEpilog()
250 VPN->setIncomingValue(VPN->getBasicBlockIndex(EpilogPreHeader), NewPN); in ConnectEpilog()
DBreakCriticalEdges.cpp120 PHINode *NewPN = PHINode::Create( in createPHIsForSplitLoopExit() local
124 NewPN->addIncoming(V, Preds[i]); in createPHIsForSplitLoopExit()
127 PN.setIncomingValue(Idx, NewPN); in createPHIsForSplitLoopExit()
DLoopSimplify.cpp385 PHINode *NewPN = PHINode::Create(PN->getType(), BackedgeBlocks.size(), in insertUniqueBackedgeBlock() local
399 NewPN->addIncoming(IV, IBB); in insertUniqueBackedgeBlock()
420 PN->addIncoming(NewPN, BEBlock); in insertUniqueBackedgeBlock()
426 NewPN->replaceAllUsesWith(UniqueValue); in insertUniqueBackedgeBlock()
427 BEBlock->getInstList().erase(NewPN); in insertUniqueBackedgeBlock()
DCodeExtractor.cpp580 PHINode *NewPN = PHINode::Create(PN->getType(), 1 + NumPredsFromRegion, in severSplitPHINodes() local
582 PN->replaceAllUsesWith(NewPN); in severSplitPHINodes()
583 NewPN->addIncoming(PN, OldPred); in severSplitPHINodes()
589 NewPN->addIncoming(PN->getIncomingValue(i), PN->getIncomingBlock(i)); in severSplitPHINodes()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLoopSimplify.cpp671 PHINode *NewPN = PHINode::Create(PN->getType(), BackedgeBlocks.size(), in InsertUniqueBackedgeBlock() local
673 if (AA) AA->copyValue(PN, NewPN); in InsertUniqueBackedgeBlock()
686 NewPN->addIncoming(IV, IBB); in InsertUniqueBackedgeBlock()
707 PN->addIncoming(NewPN, BEBlock); in InsertUniqueBackedgeBlock()
713 NewPN->replaceAllUsesWith(UniqueValue); in InsertUniqueBackedgeBlock()
714 if (AA) AA->deleteValue(NewPN); in InsertUniqueBackedgeBlock()
715 BEBlock->getInstList().erase(NewPN); in InsertUniqueBackedgeBlock()
DBreakCriticalEdges.cpp143 PHINode *NewPN = PHINode::Create(PN->getType(), Preds.size(), "split", in CreatePHIsForSplitLoopExit() local
146 NewPN->addIncoming(V, Preds[i]); in CreatePHIsForSplitLoopExit()
148 PN->setIncomingValue(Idx, NewPN); in CreatePHIsForSplitLoopExit()
DCodeExtractor.cpp166 PHINode *NewPN = PHINode::Create(PN->getType(), 1 + NumPredsFromRegion, in severSplitPHINodes() local
168 NewPN->addIncoming(PN, OldPred); in severSplitPHINodes()
174 NewPN->addIncoming(PN->getIncomingValue(i), PN->getIncomingBlock(i)); in severSplitPHINodes()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DDwarfEHPrepare.cpp441 PHINode *NewPN = PHINode::Create(PN->getType(), in NormalizeLandingPads() local
446 NewPN->addIncoming(PN->getIncomingValueForBlock(*PI), *PI); in NormalizeLandingPads()
449 InVal = NewPN; in NormalizeLandingPads()
/external/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp1866 MachineInstr *NewPN = MF->CreateMachineInstr(PD, DL); in createPreheaderForLoop() local
1867 NewPH->insert(NewPH->end(), NewPN); in createPreheaderForLoop()
1872 NewPN->addOperand(MachineOperand::CreateReg(NewPR, true)); in createPreheaderForLoop()
1885 NewPN->addOperand(MO); in createPreheaderForLoop()
1886 NewPN->addOperand(MachineOperand::CreateMBB(PredB)); in createPreheaderForLoop()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp1906 MachineInstr *NewPN = MF->CreateMachineInstr(PD, DL); in createPreheaderForLoop() local
1907 NewPH->insert(NewPH->end(), NewPN); in createPreheaderForLoop()
1912 NewPN->addOperand(MachineOperand::CreateReg(NewPR, true)); in createPreheaderForLoop()
1925 NewPN->addOperand(MO); in createPreheaderForLoop()
1926 NewPN->addOperand(MachineOperand::CreateMBB(PredB)); in createPreheaderForLoop()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DIndVarSimplify.cpp583 PHINode *NewPN = cast<PHINode>(PN->clone()); in RewriteLoopExitValues() local
584 NewPN->takeName(PN); in RewriteLoopExitValues()
585 NewPN->insertBefore(PN); in RewriteLoopExitValues()
586 PN->replaceAllUsesWith(NewPN); in RewriteLoopExitValues()

12