/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | MergedLoadStoreMotion.cpp | 218 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()
|
D | CallSiteSplitting.cpp | 404 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()
|
D | JumpThreading.cpp | 1992 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 …]
|
D | SimpleLoopUnswitch.cpp | 230 auto *NewPN = PHINode::Create(PN.getType(), /*NumReservedValues*/ 2, in rewritePHINodesForExitAndUnswitchedBlocks() local 251 NewPN->addIncoming(Incoming, &OldPH); in rewritePHINodesForExitAndUnswitchedBlocks() 256 PN.replaceAllUsesWith(NewPN); in rewritePHINodesForExitAndUnswitchedBlocks() 257 NewPN->addIncoming(&PN, &ExitBB); in rewritePHINodesForExitAndUnswitchedBlocks()
|
D | SROA.cpp | 1269 PHINode *NewPN = PHIBuilder.CreatePHI(LoadTy, PN.getNumIncomingValues(), in speculatePHINodeLoads() local 1281 LI->replaceAllUsesWith(NewPN); in speculatePHINodeLoads() 1296 NewPN->addIncoming(V, Pred); in speculatePHINodeLoads() 1310 NewPN->addIncoming(Load, Pred); in speculatePHINodeLoads() 1314 LLVM_DEBUG(dbgs() << " speculated to: " << *NewPN << "\n"); in speculatePHINodeLoads()
|
D | LoopStrengthReduce.cpp | 5408 PHINode *NewPN = cast<PHINode>(I); in RewriteForPHI() local 5409 for (const auto &val : NewPN->incoming_values()) in RewriteForPHI() 5411 Fixup.UserInst = NewPN; in RewriteForPHI()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 465 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 …]
|
D | InstructionCombining.cpp | 1018 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 …]
|
D | InstCombineCasts.cpp | 2309 PHINode *NewPN = Builder.CreatePHI(DestTy, OldPN->getNumOperands()); in optimizeBitCastFromPhi() local 2310 NewPNodes[OldPN] = NewPN; in optimizeBitCastFromPhi() 2315 PHINode *NewPN = NewPNodes[OldPN]; in optimizeBitCastFromPhi() local 2336 NewPN->addIncoming(NewV, OldPN->getIncomingBlock(j)); in optimizeBitCastFromPhi() 2351 PHINode *NewPN = NewPNodes[OldPN]; in optimizeBitCastFromPhi() local 2360 cast<BitCastInst>(Builder.CreateBitCast(NewPN, SrcTy)); in optimizeBitCastFromPhi() 2371 Instruction *I = replaceInstUsesWith(*BCI, NewPN); in optimizeBitCastFromPhi()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LoopUnrollRuntime.cpp | 102 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()
|
D | BreakCriticalEdges.cpp | 126 PHINode *NewPN = PHINode::Create( in createPHIsForSplitLoopExit() local 130 NewPN->addIncoming(V, Preds[i]); in createPHIsForSplitLoopExit() 133 PN.setIncomingValue(Idx, NewPN); in createPHIsForSplitLoopExit()
|
D | LoopSimplify.cpp | 394 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()
|
D | CodeExtractor.cpp | 676 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()
|
D | SimplifyCFG.cpp | 3298 PHINode *NewPN = PHINode::Create( in SimplifyCondBranchToCondBranch() local 3310 NewPN->addIncoming( in SimplifyCondBranchToCondBranch() 3314 NewPN->addIncoming(BI->getCondition(), P); in SimplifyCondBranchToCondBranch() 3318 BI->setCondition(NewPN); in SimplifyCondBranchToCondBranch()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonHardwareLoops.cpp | 1904 MachineInstr *NewPN = MF->CreateMachineInstr(PD, DL); in createPreheaderForLoop() local 1905 NewPH->insert(NewPH->end(), NewPN); in createPreheaderForLoop() 1910 NewPN->addOperand(MachineOperand::CreateReg(NewPR, true)); in createPreheaderForLoop() 1923 NewPN->addOperand(MO); in createPreheaderForLoop() 1924 NewPN->addOperand(MachineOperand::CreateMBB(PredB)); in createPreheaderForLoop()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 859 for (PHINode &NewPN : NewBlock->phis()) { in cloneCommonBlocks() 860 UpdatePHIOnClonedBlock(&NewPN, /*IsForOldBlock=*/false); in cloneCommonBlocks()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1197 PHINode *NewPN = in GetHeapSROAValue() local 1201 Result = NewPN; in GetHeapSROAValue()
|