[llvm] [VPlan] Remove ResumePhi opcode, use regular PHI instead (NFC). (PR #140405)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 30 03:26:32 PDT 2025
================
@@ -7535,10 +7534,7 @@ static void fixReductionScalarResumeWhenVectorizingEpilog(
// created a bc.merge.rdx Phi after the main vector body. Ensure that we carry
// over the incoming values correctly.
using namespace VPlanPatternMatch;
- auto IsResumePhi = [](VPUser *U) {
- auto *VPI = dyn_cast<VPInstruction>(U);
- return VPI && VPI->getOpcode() == VPInstruction::ResumePhi;
- };
+ auto IsResumePhi = [](VPUser *U) { return isa<VPPhi>(U); };
assert(count_if(EpiRedResult->users(), IsResumePhi) == 1 &&
----------------
fhahn wrote:
Yep, updated thanks
https://github.com/llvm/llvm-project/pull/140405
More information about the llvm-commits
mailing list