[llvm] [VPlan] Replace RdxDesc with RecurKind in VPReductionPHIRecipe (NFC). (PR #142322)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 6 09:34:32 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)),
----------------
ayalz wrote:
Can be done independently.
https://github.com/llvm/llvm-project/pull/142322
More information about the llvm-commits
mailing list