[llvm] [VPlan] Introduce ResumePhi VPInstruction, use to create phi for FOR. (PR #94760)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 04:52:19 PDT 2024
================
@@ -193,11 +193,18 @@ void VPLiveOut::fixPhi(VPlan &Plan, VPTransformState &State) {
auto Lane = vputils::isUniformAfterVectorization(ExitValue)
? VPLane::getFirstLane()
: VPLane::getLastLaneForVF(State.VF);
- VPBasicBlock *MiddleVPBB =
+ VPBasicBlock *PredVPBB =
cast<VPBasicBlock>(Plan.getVectorLoopRegion()->getSingleSuccessor());
- BasicBlock *MiddleBB = State.CFG.VPBB2IRBB[MiddleVPBB];
- Phi->addIncoming(State.get(ExitValue, VPIteration(State.UF - 1, Lane)),
- MiddleBB);
+ VPRecipeBase *DefRecipe = ExitValue->getDefiningRecipe();
----------------
fhahn wrote:
Yep, but I think this mostly boils down to not having to unnecessarily restrict the inputs.
https://github.com/llvm/llvm-project/pull/94760
More information about the llvm-commits
mailing list