[llvm] [VPlan] Replace RdxDesc with RecurKind in VPReductionPHIRecipe (NFC). (PR #142322)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 6 12:56:05 PDT 2025


================
@@ -740,8 +740,8 @@ Value *VPInstruction::generate(VPTransformState &State) {
     Value *ReducedPartRdx = State.get(getOperand(2));
     for (unsigned Idx = 3; Idx < getNumOperands(); ++Idx)
       ReducedPartRdx = Builder.CreateBinOp(
-          (Instruction::BinaryOps)RecurrenceDescriptor::getOpcode(
-              RecurKind::AnyOf),
+          static_cast<Instruction::BinaryOps>(
+              RecurrenceDescriptor::getOpcode(RecurKind::AnyOf)),
----------------
fhahn wrote:

Sounds good , will do separately, thanks

https://github.com/llvm/llvm-project/pull/142322


More information about the llvm-commits mailing list