Home
last modified time | relevance | path

Searched refs:NewPhi (Results 1 – 25 of 27) sorted by relevance

12

/external/llvm-project/llvm/lib/Analysis/
DMemorySSAUpdater.cpp685 auto FixPhiIncomingValues = [&](MemoryPhi *Phi, MemoryPhi *NewPhi) { in updateForClonedLoop() argument
686 assert(Phi && NewPhi && "Invalid Phi nodes."); in updateForClonedLoop()
687 BasicBlock *NewPhiBB = NewPhi->getBlock(); in updateForClonedLoop()
718 NewPhi->addIncoming(IncMUD, IncBB); in updateForClonedLoop()
722 NewPhi->addIncoming(NewDefPhi, IncBB); in updateForClonedLoop()
724 NewPhi->addIncoming(IncPhi, IncBB); in updateForClonedLoop()
727 if (auto *SingleAccess = onlySingleValue(NewPhi)) { in updateForClonedLoop()
729 removeMemoryAccess(NewPhi); in updateForClonedLoop()
743 MemoryPhi *NewPhi = MSSA->createMemoryPhi(NewBlock); in updateForClonedLoop() local
744 MPhiMap[MPhi] = NewPhi; in updateForClonedLoop()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemorySSAUpdater.cpp659 auto FixPhiIncomingValues = [&](MemoryPhi *Phi, MemoryPhi *NewPhi) { in updateForClonedLoop() argument
660 assert(Phi && NewPhi && "Invalid Phi nodes."); in updateForClonedLoop()
661 BasicBlock *NewPhiBB = NewPhi->getBlock(); in updateForClonedLoop()
692 NewPhi->addIncoming(IncMUD, IncBB); in updateForClonedLoop()
696 NewPhi->addIncoming(NewDefPhi, IncBB); in updateForClonedLoop()
698 NewPhi->addIncoming(IncPhi, IncBB); in updateForClonedLoop()
713 MemoryPhi *NewPhi = MSSA->createMemoryPhi(NewBlock); in updateForClonedLoop() local
714 MPhiMap[MPhi] = NewPhi; in updateForClonedLoop()
725 if (MemoryAccess *NewPhi = MPhiMap.lookup(MPhi)) in updateForClonedLoop() local
726 FixPhiIncomingValues(MPhi, cast<MemoryPhi>(NewPhi)); in updateForClonedLoop()
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DUnifyLoopExits.cpp115 auto NewPhi = PHINode::Create(Def->getType(), Incoming.size(), in INITIALIZE_PASS_DEPENDENCY() local
122 NewPhi->addIncoming(Def, In); in INITIALIZE_PASS_DEPENDENCY()
125 NewPhi->addIncoming(UndefValue::get(Def->getType()), In); in INITIALIZE_PASS_DEPENDENCY()
132 U->replaceUsesOfWith(Def, NewPhi); in INITIALIZE_PASS_DEPENDENCY()
DBasicBlockUtils.cpp1160 auto NewPhi = in reconnectPhis() local
1166 V = NewPhi; in reconnectPhis()
1170 NewPhi->addIncoming(V, In); in reconnectPhis()
1172 assert(NewPhi->getNumIncomingValues() == Incoming.size()); in reconnectPhis()
1174 Phi->replaceAllUsesWith(NewPhi); in reconnectPhis()
1178 Phi->addIncoming(NewPhi, GuardBlock); in reconnectPhis()
/external/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp247 PHINode *NewPhi = PHINode::Create(Int64, 0, "", &Parent->front()); in handleLoopCondition() local
248 Value *Ret = NewPhi; in handleLoopCondition()
255 NewPhi->addIncoming(Broken, From); in handleLoopCondition()
261 NewPhi->addIncoming(PhiArg, From); in handleLoopCondition()
292 Value *Args[] = { OldEnd->getArgOperand(0), NewPhi }; in handleLoopCondition()
299 NewPhi->setIncomingValue(i, PhiArg); in handleLoopCondition()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonVectorLoopCarriedReuse.cpp639 PHINode *NewPhi; in reuseValue() local
642 NewPhi = IRB.CreatePHI(InstInPreheader->getType(), 2); in reuseValue()
643 NewPhi->addIncoming(InstInPreheader, LoopPH); in reuseValue()
644 NewPhi->addIncoming(BEVal, BB); in reuseValue()
645 LLVM_DEBUG(dbgs() << "Adding " << *NewPhi << " to " << BB->getName() in reuseValue()
647 BEVal = NewPhi; in reuseValue()
651 Inst2Replace->replaceAllUsesWith(NewPhi); in reuseValue()
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonVectorLoopCarriedReuse.cpp560 PHINode *NewPhi; in reuseValue() local
563 NewPhi = IRB.CreatePHI(InstInPreheader->getType(), 2); in reuseValue()
564 NewPhi->addIncoming(InstInPreheader, LoopPH); in reuseValue()
565 NewPhi->addIncoming(BEVal, BB); in reuseValue()
566 LLVM_DEBUG(dbgs() << "Adding " << *NewPhi << " to " << BB->getName() in reuseValue()
568 BEVal = NewPhi; in reuseValue()
572 Inst2Replace->replaceAllUsesWith(NewPhi); in reuseValue()
/external/llvm-project/llvm/lib/Target/ARM/
DMVEGatherScatterLowering.cpp958 PHINode *NewPhi; in optimiseOffsets() local
987 NewPhi = Phi; in optimiseOffsets()
990 NewPhi = PHINode::Create(Phi->getType(), 0, "NewPhi", Phi); in optimiseOffsets()
993 NewPhi->addIncoming(Phi->getIncomingValue(IncrementingBlock == 1 ? 0 : 1), in optimiseOffsets()
996 Instruction::BinaryOps(IncInstruction->getOpcode()), NewPhi, in optimiseOffsets()
998 NewPhi->addIncoming(IncInstruction, in optimiseOffsets()
1009 pushOutAdd(NewPhi, OffsSecondOperand, IncrementingBlock == 1 ? 0 : 1); in optimiseOffsets()
1012 pushOutMul(NewPhi, IncrementPerRound, OffsSecondOperand, IncrementingBlock, in optimiseOffsets()
1022 Offs->replaceAllUsesWith(NewPhi); in optimiseOffsets()
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp455 PHINode *NewPhi = PHINode::Create(NarrowType, NumIncomingValues, in FoldPHIArgZextsIntoPHI() local
458 NewPhi->addIncoming(NewIncoming[i], Phi.getIncomingBlock(i)); in FoldPHIArgZextsIntoPHI()
460 InsertNewInstBefore(NewPhi, Phi); in FoldPHIArgZextsIntoPHI()
461 return CastInst::CreateZExtOrBitCast(NewPhi, Phi.getType()); in FoldPHIArgZextsIntoPHI()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLoopInterchange.cpp1456 PHINode *NewPhi = dyn_cast<PHINode>(P.clone()); in moveLCSSAPhis() local
1457 NewPhi->setIncomingValue(0, P.getIncomingValue(0)); in moveLCSSAPhis()
1458 NewPhi->setIncomingBlock(0, OuterLatch); in moveLCSSAPhis()
1459 NewPhi->insertBefore(InnerLatch->getFirstNonPHI()); in moveLCSSAPhis()
1460 P.setIncomingValue(0, NewPhi); in moveLCSSAPhis()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopInterchange.cpp1422 PHINode *NewPhi = dyn_cast<PHINode>(P.clone()); in moveLCSSAPhis() local
1423 NewPhi->setIncomingValue(0, P.getIncomingValue(0)); in moveLCSSAPhis()
1424 NewPhi->setIncomingBlock(0, OuterLatch); in moveLCSSAPhis()
1425 NewPhi->insertBefore(InnerLatch->getFirstNonPHI()); in moveLCSSAPhis()
1426 P.setIncomingValue(0, NewPhi); in moveLCSSAPhis()
/external/llvm-project/llvm/lib/CodeGen/
DModuloSchedule.cpp550 MachineInstrBuilder NewPhi = in generateExistingPhis() local
553 NewPhi.addReg(PhiOp1).addMBB(BB1); in generateExistingPhis()
554 NewPhi.addReg(PhiOp2).addMBB(BB2); in generateExistingPhis()
556 InstrMap[NewPhi] = &*BBI; in generateExistingPhis()
666 MachineInstrBuilder NewPhi = in generatePhis() local
669 NewPhi.addReg(PhiOp1).addMBB(BB1); in generatePhis()
670 NewPhi.addReg(PhiOp2).addMBB(BB2); in generatePhis()
672 InstrMap[NewPhi] = &*BBI; in generatePhis()
DCodeGenPrepare.cpp5917 PHINode *NewPhi = cast<PHINode>(ValMap[Phi]); in optimizePhiType() local
5919 NewPhi->addIncoming(ValMap[Phi->getIncomingValue(i)], in optimizePhiType()
5921 Visited.insert(NewPhi); in optimizePhiType()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DModuloSchedule.cpp551 MachineInstrBuilder NewPhi = in generateExistingPhis() local
554 NewPhi.addReg(PhiOp1).addMBB(BB1); in generateExistingPhis()
555 NewPhi.addReg(PhiOp2).addMBB(BB2); in generateExistingPhis()
557 InstrMap[NewPhi] = &*BBI; in generateExistingPhis()
667 MachineInstrBuilder NewPhi = in generatePhis() local
670 NewPhi.addReg(PhiOp1).addMBB(BB1); in generatePhis()
671 NewPhi.addReg(PhiOp2).addMBB(BB2); in generatePhis()
673 InstrMap[NewPhi] = &*BBI; in generatePhis()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp724 PHINode *NewPhi = PHINode::Create(NarrowType, NumIncomingValues, in FoldPHIArgZextsIntoPHI() local
727 NewPhi->addIncoming(NewIncoming[i], Phi.getIncomingBlock(i)); in FoldPHIArgZextsIntoPHI()
729 InsertNewInstBefore(NewPhi, Phi); in FoldPHIArgZextsIntoPHI()
730 return CastInst::CreateZExtOrBitCast(NewPhi, Phi.getType()); in FoldPHIArgZextsIntoPHI()
DInstructionCombining.cpp1114 if (Instruction *NewPhi = foldOpIntoPhi(I, PN)) in foldBinOpIntoSelectOrPhi() local
1115 return NewPhi; in foldBinOpIntoSelectOrPhi()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp805 PHINode *NewPhi = PHINode::Create(NarrowType, NumIncomingValues, in foldPHIArgZextsIntoPHI() local
808 NewPhi->addIncoming(NewIncoming[i], Phi.getIncomingBlock(i)); in foldPHIArgZextsIntoPHI()
810 InsertNewInstBefore(NewPhi, Phi); in foldPHIArgZextsIntoPHI()
811 return CastInst::CreateZExtOrBitCast(NewPhi, Phi.getType()); in foldPHIArgZextsIntoPHI()
DInstCombineCompares.cpp720 PHINode *NewPhi = static_cast<PHINode *>(NewInsts[PHI]); in rewriteGEPAsOffset() local
727 NewPhi->addIncoming(NewIncoming, PHI->getIncomingBlock(I)); in rewriteGEPAsOffset()
1466 PHINode *NewPhi = in foldICmpWithConstant() local
1472 NewPhi->addIncoming(BoolInput, Predecessor); in foldICmpWithConstant()
1474 NewPhi->takeName(&Cmp); in foldICmpWithConstant()
1475 return replaceInstUsesWith(Cmp, NewPhi); in foldICmpWithConstant()
DInstructionCombining.cpp1196 if (Instruction *NewPhi = foldOpIntoPhi(I, PN)) in foldBinOpIntoSelectOrPhi() local
1197 return NewPhi; in foldBinOpIntoSelectOrPhi()
/external/llvm/lib/CodeGen/
DMachinePipeliner.cpp2659 MachineInstrBuilder NewPhi = in generateExistingPhis() local
2662 NewPhi.addReg(PhiOp1).addMBB(BB1); in generateExistingPhis()
2663 NewPhi.addReg(PhiOp2).addMBB(BB2); in generateExistingPhis()
2665 InstrMap[NewPhi] = &*BBI; in generateExistingPhis()
2776 MachineInstrBuilder NewPhi = in generatePhis() local
2779 NewPhi.addReg(PhiOp1).addMBB(BB1); in generatePhis()
2780 NewPhi.addReg(PhiOp2).addMBB(BB2); in generatePhis()
2782 InstrMap[NewPhi] = &*BBI; in generatePhis()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp2219 PHINode *NewPhi = Builder.CreatePHI(VecTy, PH->getNumIncomingValues()); in vectorizeTree() local
2220 E->VectorizedValue = NewPhi; in vectorizeTree()
2231 NewPhi->addIncoming(NewPhi->getIncomingValueForBlock(IBB), IBB); in vectorizeTree()
2242 NewPhi->addIncoming(Vec, IBB); in vectorizeTree()
2245 assert(NewPhi->getNumIncomingValues() == PH->getNumIncomingValues() && in vectorizeTree()
2247 return NewPhi; in vectorizeTree()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp4081 PHINode *NewPhi = Builder.CreatePHI(VecTy, PH->getNumIncomingValues()); in vectorizeTree() local
4082 Value *V = NewPhi; in vectorizeTree()
4098 NewPhi->addIncoming(NewPhi->getIncomingValueForBlock(IBB), IBB); in vectorizeTree()
4105 NewPhi->addIncoming(Vec, IBB); in vectorizeTree()
4108 assert(NewPhi->getNumIncomingValues() == PH->getNumIncomingValues() && in vectorizeTree()
DLoopVectorize.cpp4005 PHINode *NewPhi = in fixNonInductionPHIs() local
4012 predecessors(NewPhi->getParent())); in fixNonInductionPHIs()
4020 Builder.SetInsertPoint(NewPhi); in fixNonInductionPHIs()
4034 NewPhi->addIncoming(NewIncV, NewPredBB); in fixNonInductionPHIs()
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp4404 PHINode *NewPhi = Builder.CreatePHI(VecTy, PH->getNumIncomingValues()); in vectorizeTree() local
4405 Value *V = NewPhi; in vectorizeTree()
4420 NewPhi->addIncoming(NewPhi->getIncomingValueForBlock(IBB), IBB); in vectorizeTree()
4427 NewPhi->addIncoming(Vec, IBB); in vectorizeTree()
4430 assert(NewPhi->getNumIncomingValues() == PH->getNumIncomingValues() && in vectorizeTree()
DLoopVectorize.cpp4479 PHINode *NewPhi = in fixNonInductionPHIs() local
4486 predecessors(NewPhi->getParent())); in fixNonInductionPHIs()
4494 Builder.SetInsertPoint(NewPhi); in fixNonInductionPHIs()
4508 NewPhi->addIncoming(NewIncV, NewPredBB); in fixNonInductionPHIs()

12