[llvm] [LV] Support partial reduce subs/fsubs without a mul operand (PR #199664)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 1 05:50:04 PDT 2026


================
@@ -3244,11 +3247,17 @@ void VPExpressionRecipe::printRecipe(raw_ostream &O, const Twine &Indent,
   unsigned Opcode = RecurrenceDescriptor::getOpcode(Red->getRecurrenceKind());
 
   switch (ExpressionType) {
+  case ExpressionTypes::NegatedExtendedReduction:
   case ExpressionTypes::ExtendedReduction: {
+    bool Negated = ExpressionType == ExpressionTypes::NegatedExtendedReduction;
     getOperand(1)->printAsOperand(O, SlotTracker);
----------------
fhahn wrote:

Is this correct for the `sub` case? It looks like the this would be the `ir<0>` operand in that case looking at the print tests

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


More information about the llvm-commits mailing list