[llvm] [VPlan] Remove ResumePhi opcode, use regular PHI instead (NFC). (PR #140405)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu May 29 04:27:05 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 &&
----------------
lukel97 wrote:
Can this become
```suggestion
assert(count_if(EpiRedResult->users(), IsaPred<VPPhi>) == 1 &&
```
https://github.com/llvm/llvm-project/pull/140405
More information about the llvm-commits
mailing list