[llvm] [LV] Handle FSub Partial Reductions (PR #191186)
Jacob Crawley via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 06:11:12 PDT 2026
================
@@ -559,6 +559,14 @@ bool VPInstruction::canGenerateScalarForFirstLane() const {
}
}
+Instruction::BinaryOps getSubRecurOpcode(RecurKind Kind) {
+ if (Kind == RecurKind::Sub)
+ return Instruction::Add;
+ if (Kind == RecurKind::FSub)
+ return Instruction::FAdd;
+ return (Instruction::BinaryOps)RecurrenceDescriptor::getOpcode(Kind);
----------------
jacob-crawley wrote:
Agreed, I think that makes more sense.
https://github.com/llvm/llvm-project/pull/191186
More information about the llvm-commits
mailing list