/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 207 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 …]
|
D | InstructionCombining.cpp | 651 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/ |
D | InstCombinePHI.cpp | 198 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 …]
|
D | InstructionCombining.cpp | 845 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/ |
D | LoopUnrollRuntime.cpp | 83 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()
|
D | BreakCriticalEdges.cpp | 103 PHINode *NewPN = PHINode::Create( in createPHIsForSplitLoopExit() local 107 NewPN->addIncoming(V, Preds[i]); in createPHIsForSplitLoopExit() 110 PN->setIncomingValue(Idx, NewPN); in createPHIsForSplitLoopExit()
|
D | LoopSimplify.cpp | 396 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()
|
D | CodeExtractor.cpp | 243 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()
|
D | SimplifyCFG.cpp | 1451 auto &NewPN = JointValueMap[std::make_pair(DifferentOp1, DifferentOp2)]; in SinkThenElseCodeToEnd() local 1452 if (!NewPN) { in SinkThenElseCodeToEnd() 1453 NewPN = in SinkThenElseCodeToEnd() 1456 NewPN->addIncoming(DifferentOp1, BB1); in SinkThenElseCodeToEnd() 1457 NewPN->addIncoming(DifferentOp2, BB2); in SinkThenElseCodeToEnd() 1458 DEBUG(dbgs() << "Create PHI node " << *NewPN << "\n";); in SinkThenElseCodeToEnd() 1461 I1->setOperand(Op1Idx, NewPN); in SinkThenElseCodeToEnd() 2786 PHINode *NewPN = PHINode::Create( in SimplifyCondBranchToCondBranch() local 2798 NewPN->addIncoming( in SimplifyCondBranchToCondBranch() 2802 NewPN->addIncoming(BI->getCondition(), P); in SimplifyCondBranchToCondBranch() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | MergedLoadStoreMotion.cpp | 409 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()
|
D | JumpThreading.cpp | 1948 PHINode *NewPN = PHINode::Create(SI->getType(), 2, "", SI); in TryToUnfoldSelectInCurrBB() local 1949 NewPN->addIncoming(SI->getTrueValue(), Term->getParent()); in TryToUnfoldSelectInCurrBB() 1950 NewPN->addIncoming(SI->getFalseValue(), BB); in TryToUnfoldSelectInCurrBB() 1951 SI->replaceAllUsesWith(NewPN); in TryToUnfoldSelectInCurrBB()
|
D | SROA.cpp | 1196 PHINode *NewPN = PHIBuilder.CreatePHI(LoadTy, PN.getNumIncomingValues(), in speculatePHINodeLoads() local 1210 LI->replaceAllUsesWith(NewPN); in speculatePHINodeLoads() 1227 NewPN->addIncoming(Load, Pred); in speculatePHINodeLoads() 1230 DEBUG(dbgs() << " speculated to: " << *NewPN << "\n"); in speculatePHINodeLoads()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | LoopSimplify.cpp | 671 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()
|
D | BreakCriticalEdges.cpp | 143 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()
|
D | CodeExtractor.cpp | 166 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()
|
D | SimplifyCFG.cpp | 1679 PHINode *NewPN = PHINode::Create(Type::getInt1Ty(BB->getContext()), in SimplifyCondBranchToCondBranch() local 1693 NewPN->addIncoming(ConstantInt::get(Type::getInt1Ty(BB->getContext()), in SimplifyCondBranchToCondBranch() 1696 NewPN->addIncoming(BI->getCondition(), P); in SimplifyCondBranchToCondBranch() 1700 BI->setCondition(NewPN); in SimplifyCondBranchToCondBranch()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | DwarfEHPrepare.cpp | 441 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/ |
D | HexagonHardwareLoops.cpp | 1866 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/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 583 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()
|
D | ScalarReplAggregates.cpp | 1249 PHINode *NewPN = PHINode::Create(LoadTy, PN->getNumIncomingValues(), in tryToMakeAllocaBePromotable() local 1261 LI->replaceAllUsesWith(NewPN); in tryToMakeAllocaBePromotable() 1280 NewPN->addIncoming(Load, Pred); in tryToMakeAllocaBePromotable()
|
/external/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 848 auto *NewPN = dyn_cast<PHINode>(&NewI); in cloneCommonBlocks() local 849 if (!NewPN) in cloneCommonBlocks() 851 UpdatePHIOnClonedBlock(NewPN, /*IsForOldBlock=*/false); in cloneCommonBlocks()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1137 PHINode *NewPN = in GetHeapSROAValue() local 1141 Result = NewPN; in GetHeapSROAValue()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1198 PHINode *NewPN = in GetHeapSROAValue() local 1202 Result = NewPN; in GetHeapSROAValue()
|