Home
last modified time | relevance | path

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

/freebsd-src/contrib/llvm-project/llvm/lib/Analysis/
H A DMemorySSAUpdater.cpp673 auto FixPhiIncomingValues = [&](MemoryPhi *Phi, MemoryPhi *NewPhi) { in updateForClonedLoop() argument
674 assert(Phi && NewPhi && "Invalid Phi nodes."); in updateForClonedLoop()
675 BasicBlock *NewPhiBB = NewPhi->getBlock(); in updateForClonedLoop()
687 // Now we have IncBB, and will need to add incoming from it to NewPhi. in updateForClonedLoop()
695 NewPhi->addIncoming( in updateForClonedLoop()
699 if (auto *SingleAccess = onlySingleValue(NewPhi)) { in updateForClonedLoop()
701 removeMemoryAccess(NewPhi); in updateForClonedLoop()
715 MemoryPhi *NewPhi = MSSA->createMemoryPhi(NewBlock); in updateForClonedLoop() local
716 MPhiMap[MPhi] = NewPhi; in updateForClonedLoop()
727 if (MemoryAccess *NewPhi in updateForClonedLoop() local
1008 MemoryPhi *NewPhi = MSSA->getMemoryAccess(BB); applyInsertUpdates() local
1258 MemoryPhi *NewPhi = MSSA->createMemoryPhi(New); wireOldPredecessorsToNewImmediatePredecessor() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DUnifyLoopExits.cpp114 // For each Def used outside the loop, create NewPhi in in INITIALIZE_PASS_DEPENDENCY()
115 // LoopExitBlock. NewPhi receives Def only along exiting blocks that in INITIALIZE_PASS_DEPENDENCY()
120 auto NewPhi = in INITIALIZE_PASS_DEPENDENCY() local
127 NewPhi->addIncoming(Def, In); in INITIALIZE_PASS_DEPENDENCY()
130 NewPhi->addIncoming(PoisonValue::get(Def->getType()), In); in INITIALIZE_PASS_DEPENDENCY()
137 U->replaceUsesOfWith(Def, NewPhi); in INITIALIZE_PASS_DEPENDENCY()
H A DPromoteMemoryToRegister.cpp192 /// NewPhi. in updateForNewPhi()
193 void updateForNewPhi(PHINode *NewPhi, DIBuilder &DIB) const { in updateForNewPhi()
198 ConvertDebugDeclareToDebugValue(DAI, NewPhi, DIB); in updateForNewPhi()
200 ConvertDebugDeclareToDebugValue(DVR, NewPhi, DIB);
191 updateForNewPhi(PHINode * NewPhi,DIBuilder & DIB) const updateForNewPhi() argument
H A DBasicBlockUtils.cpp1909 auto NewPhi = in reconnectPhis()
1915 V = NewPhi; in reconnectPhis()
1919 NewPhi->addIncoming(V, In);
1921 assert(NewPhi->getNumIncomingValues() == Incoming.size());
1923 Phi->replaceAllUsesWith(NewPhi);
1927 Phi->addIncoming(NewPhi, GuardBlock);
1897 auto NewPhi = reconnectPhis() local
/freebsd-src/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp557 PHINode *NewPhi; in reuseValue() local
560 NewPhi = IRB.CreatePHI(InstInPreheader->getType(), 2); in reuseValue()
561 NewPhi->addIncoming(InstInPreheader, LoopPH); in reuseValue()
562 NewPhi->addIncoming(BEVal, BB); in reuseValue()
563 LLVM_DEBUG(dbgs() << "Adding " << *NewPhi << " to " << BB->getName() in reuseValue()
565 BEVal = NewPhi; in reuseValue()
569 Inst2Replace->replaceAllUsesWith(NewPhi); in reuseValue()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp1054 PHINode *NewPhi; in optimiseOffsets()
1066 NewPhi = Phi; in optimiseOffsets()
1069 NewPhi = PHINode::Create(Phi->getType(), 2, "NewPhi", Phi->getIterator()); in optimiseOffsets()
1071 NewPhi->addIncoming(Phi->getIncomingValue(IncrementingBlock == 1 ? 0 : 1), in optimiseOffsets()
1074 Instruction::BinaryOps(IncInstruction->getOpcode()), NewPhi, in optimiseOffsets()
1076 NewPhi->addIncoming(IncInstruction, in optimiseOffsets()
1088 pushOutAdd(NewPhi, OffsSecondOperand, IncrementingBlock == 1 ? 0 : 1); in optimiseOffsets()
1092 pushOutMulShl(Offs->getOpcode(), NewPhi, IncrementPerRound, in optimiseOffsets()
1102 Offs->replaceAllUsesWith(NewPhi); in optimiseOffsets()
1048 PHINode *NewPhi; optimiseOffsets() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopInterchange.cpp1519 PHINode *NewPhi = dyn_cast<PHINode>(P.clone()); in moveLCSSAPhis() local
1520 NewPhi->setIncomingValue(0, P.getIncomingValue(0)); in moveLCSSAPhis()
1521 NewPhi->setIncomingBlock(0, OuterLatch); in moveLCSSAPhis()
1527 NewPhi->addIncoming(P.getIncomingValue(0), Pred); in moveLCSSAPhis()
1529 NewPhi->insertBefore(InnerLatch->getFirstNonPHI()); in moveLCSSAPhis()
1530 P.setIncomingValue(0, NewPhi); in moveLCSSAPhis()
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/
H A DModuloSchedule.cpp555 MachineInstrBuilder NewPhi = in generateExistingPhis()
558 NewPhi.addReg(PhiOp1).addMBB(BB1); in generateExistingPhis()
559 NewPhi.addReg(PhiOp2).addMBB(BB2); in generateExistingPhis()
561 InstrMap[NewPhi] = &*BBI; in generateExistingPhis()
694 MachineInstrBuilder NewPhi = in generatePhis()
697 NewPhi.addReg(PhiOp1).addMBB(BB1); in generatePhis()
698 NewPhi.addReg(PhiOp2).addMBB(BB2); in generatePhis()
700 InstrMap[NewPhi] = &*BBI; in generatePhis()
548 MachineInstrBuilder NewPhi = generateExistingPhis() local
687 MachineInstrBuilder NewPhi = generatePhis() local
H A DCodeGenPrepare.cpp6498 PHINode *NewPhi = cast<PHINode>(ValMap[Phi]); in optimizeExt()
6500 NewPhi->addIncoming(ValMap[Phi->getIncomingValue(i)], in optimizeExt()
6502 Visited.insert(NewPhi); in optimizeExt()
6384 PHINode *NewPhi = cast<PHINode>(ValMap[Phi]); optimizePhiType() local
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp851 PHINode *NewPhi = PHINode::Create(NarrowType, NumIncomingValues, in foldPHIArgZextsIntoPHI() local
854 NewPhi->addIncoming(NewIncoming[I], Phi.getIncomingBlock(I)); in foldPHIArgZextsIntoPHI()
856 InsertNewInstBefore(NewPhi, Phi.getIterator()); in foldPHIArgZextsIntoPHI()
857 return CastInst::CreateZExtOrBitCast(NewPhi, Phi.getType()); in foldPHIArgZextsIntoPHI()
H A DInstructionCombining.cpp1922 PHINode *NewPhi = in foldVectorBinop()
1928 NewPhi->addIncoming(NewIncomingValues[I], Phi0->getIncomingBlock(I)); in foldVectorBinop()
1929 return NewPhi; in foldVectorBinop()
1981 PHINode *NewPhi = PHINode::Create(BO.getType(), 2); in foldVectorBinop()
1982 NewPhi->addIncoming(NewBO, OtherBB); in foldVectorBinop()
1983 NewPhi->addIncoming(NewC, ConstBB); in foldVectorBinop()
1984 return NewPhi; in foldVectorBinop()
1995 if (Instruction *NewPhi = foldOpIntoPhi(I, PN)) in foldVectorBinop()
1996 return NewPhi; in foldVectorBinop()
1715 PHINode *NewPhi = foldBinopWithPhiOperands() local
1774 PHINode *NewPhi = PHINode::Create(BO.getType(), 2); foldBinopWithPhiOperands() local
1788 if (Instruction *NewPhi = foldOpIntoPhi(I, PN)) foldBinOpIntoSelectOrPhi() local
H A DInstCombineCompares.cpp598 PHINode *NewPhi = static_cast<PHINode *>(NewInsts[PHI]); in rewriteGEPAsOffset()
605 NewPhi->addIncoming(NewIncoming, PHI->getIncomingBlock(I)); in rewriteGEPAsOffset()
1321 PHINode *NewPhi = Builder.CreatePHI(Cmp.getType(), Phi->getNumOperands()); in foldICmpWithConstant()
1323 NewPhi->addIncoming(V, Pred); in foldICmpWithConstant()
1324 return replaceInstUsesWith(Cmp, NewPhi); in foldICmpWithConstant()
593 PHINode *NewPhi = static_cast<PHINode *>(NewInsts[PHI]); rewriteGEPAsOffset() local
1320 PHINode *NewPhi = Builder.CreatePHI(Cmp.getType(), Phi->getNumOperands()); foldICmpWithConstant() local
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp12836 PHINode *NewPhi = Builder.CreatePHI(VecTy, PH->getNumIncomingValues()); in calculateDependencies()
12837 E->PHI = NewPhi; in calculateDependencies()
12838 Value *V = NewPhi; in calculateDependencies()
12851 PHINode *NewPhi = cast<PHINode>(E->PHI); in calculateDependencies()
12853 if (NewPhi->getNumIncomingValues() != 0) in calculateDependencies()
12854 return NewPhi; in calculateDependencies()
12865 if (NewPhi->getNumIncomingValues() == PH->getNumIncomingValues()) { in calculateDependencies()
12867 return NewPhi; in calculateDependencies()
12871 NewPhi->addIncoming(NewPhi in calculateDependencies()
11127 PHINode *NewPhi = Builder.CreatePHI(VecTy, PH->getNumIncomingValues()); vectorizeTree() local
11142 PHINode *NewPhi = cast<PHINode>(E->PHI); vectorizeTree() local
[all...]
H A DLoopVectorize.cpp3099 PHINode *NewPhi = cast<PHINode>(State.get(VPPhi, 0)); in createInductionResumeValue()
3101 Builder.SetInsertPoint(NewPhi); in createInductionResumeValue()
3105 NewPhi->addIncoming(State.get(Inc, 0), State.CFG.VPBB2IRBB[VPBB]); in createInductionResumeValue()
3749 PHINode *NewPhi = cast<PHINode>(State.get(VPPhi, 0)); fixNonInductionPHIs() local
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp4106 auto NewPhi = Builder.buildInstrNoInsert(TargetOpcode::G_PHI); in matchOrShiftToFunnelShift()
4107 NewPhi.addDef(DstReg); in matchOrShiftToFunnelShift()
4110 NewPhi.addMBB(MO.getMBB()); in matchOrShiftToFunnelShift()
4114 NewPhi.addUse(NewSrc->getOperand(0).getReg()); in matchOrShiftToFunnelShift()
4116 Builder.insertInstr(NewPhi); in matchOrShiftToFunnelShift()
3966 auto NewPhi = Builder.buildInstrNoInsert(TargetOpcode::G_PHI); applyExtendThroughPhis() local