Searched refs:NewPhi (Results 1 - 13 of 13) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DUnifyLoopExits.cpp105 // For each Def used outside the loop, create NewPhi in
106 // LoopExitBlock. NewPhi receives Def only along exiting blocks that
111 auto NewPhi = PHINode::Create(Def->getType(), Incoming.size(), local
118 NewPhi->addIncoming(Def, In);
121 NewPhi->addIncoming(UndefValue::get(Def->getType()), In);
128 U->replaceUsesOfWith(Def, NewPhi);
H A DBasicBlockUtils.cpp1146 auto NewPhi = local
1152 V = NewPhi;
1156 NewPhi->addIncoming(V, In);
1158 assert(NewPhi->getNumIncomingValues() == Incoming.size());
1160 Phi->replaceAllUsesWith(NewPhi);
1164 Phi->addIncoming(NewPhi, GuardBlock);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DMemorySSAUpdater.cpp661 auto FixPhiIncomingValues = [&](MemoryPhi *Phi, MemoryPhi *NewPhi) {
662 assert(Phi && NewPhi && "Invalid Phi nodes.");
663 BasicBlock *NewPhiBB = NewPhi->getBlock();
675 // Now we have IncBB, and will need to add incoming from it to NewPhi.
694 NewPhi->addIncoming(IncMUD, IncBB);
698 NewPhi->addIncoming(NewDefPhi, IncBB);
700 NewPhi->addIncoming(IncPhi, IncBB);
715 MemoryPhi *NewPhi = MSSA->createMemoryPhi(NewBlock);
716 MPhiMap[MPhi] = NewPhi;
727 if (MemoryAccess *NewPhi
989 MemoryPhi *NewPhi = MSSA->getMemoryAccess(BB); local
1259 MemoryPhi *NewPhi = MSSA->createMemoryPhi(New); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp639 PHINode *NewPhi; local
642 NewPhi = IRB.CreatePHI(InstInPreheader->getType(), 2);
643 NewPhi->addIncoming(InstInPreheader, LoopPH);
644 NewPhi->addIncoming(BEVal, BB);
645 LLVM_DEBUG(dbgs() << "Adding " << *NewPhi << " to " << BB->getName()
647 BEVal = NewPhi;
651 Inst2Replace->replaceAllUsesWith(NewPhi);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp906 PHINode *NewPhi; local
935 NewPhi = Phi;
938 NewPhi = PHINode::Create(Phi->getType(), 0, "NewPhi", Phi);
941 NewPhi->addIncoming(Phi->getIncomingValue(IncrementingBlock == 1 ? 0 : 1),
944 Instruction::BinaryOps(IncInstruction->getOpcode()), NewPhi,
946 NewPhi->addIncoming(IncInstruction,
957 pushOutAdd(NewPhi, OffsSecondOperand, IncrementingBlock == 1 ? 0 : 1);
960 pushOutMul(NewPhi, IncrementPerRound, OffsSecondOperand, IncrementingBlock,
970 Offs->replaceAllUsesWith(NewPhi);
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopInterchange.cpp1444 PHINode *NewPhi = dyn_cast<PHINode>(P.clone());
1445 NewPhi->setIncomingValue(0, P.getIncomingValue(0));
1446 NewPhi->setIncomingBlock(0, OuterLatch);
1447 NewPhi->insertBefore(InnerLatch->getFirstNonPHI());
1448 P.setIncomingValue(0, NewPhi);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DModuloSchedule.cpp552 MachineInstrBuilder NewPhi = local
555 NewPhi.addReg(PhiOp1).addMBB(BB1);
556 NewPhi.addReg(PhiOp2).addMBB(BB2);
558 InstrMap[NewPhi] = &*BBI;
668 MachineInstrBuilder NewPhi = local
671 NewPhi.addReg(PhiOp1).addMBB(BB1);
672 NewPhi.addReg(PhiOp2).addMBB(BB2);
674 InstrMap[NewPhi] = &*BBI;
H A DCodeGenPrepare.cpp5841 PHINode *NewPhi = cast<PHINode>(ValMap[Phi]); local
5843 NewPhi->addIncoming(ValMap[Phi->getIncomingValue(i)],
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp719 PHINode *NewPhi = PHINode::Create(NarrowType, NumIncomingValues,
722 NewPhi->addIncoming(NewIncoming[i], Phi.getIncomingBlock(i));
724 InsertNewInstBefore(NewPhi, Phi);
725 return CastInst::CreateZExtOrBitCast(NewPhi, Phi.getType());
H A DInstCombineCompares.cpp718 PHINode *NewPhi = static_cast<PHINode *>(NewInsts[PHI]); local
725 NewPhi->addIncoming(NewIncoming, PHI->getIncomingBlock(I));
1464 PHINode *NewPhi = local
1470 NewPhi->addIncoming(BoolInput, Predecessor);
1472 NewPhi->takeName(&Cmp);
1473 return replaceInstUsesWith(Cmp, NewPhi);
H A DInstructionCombining.cpp1131 if (Instruction *NewPhi = foldOpIntoPhi(I, PN))
1132 return NewPhi;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp4173 PHINode *NewPhi = Builder.CreatePHI(VecTy, PH->getNumIncomingValues());
4174 Value *V = NewPhi;
4190 NewPhi->addIncoming(NewPhi->getIncomingValueForBlock(IBB), IBB);
4197 NewPhi->addIncoming(Vec, IBB);
4200 assert(NewPhi->getNumIncomingValues() == PH->getNumIncomingValues() &&
H A DLoopVectorize.cpp4056 PHINode *NewPhi =
4063 predecessors(NewPhi->getParent()));
4071 Builder.SetInsertPoint(NewPhi);
4085 NewPhi->addIncoming(NewIncV, NewPredBB);

Completed in 327 milliseconds