================
@@ -2955,12 +2966,14 @@ 
tryToMatchAndCreateMulAccumulateReduction(VPReductionRecipe *Red,
 
     // Match reduce.add(mul(ext, ext)).
     if (RecipeA && RecipeB &&
-        (RecipeA->getOpcode() == RecipeB->getOpcode() || A == B) &&
+        (RecipeA->getOpcode() == RecipeB->getOpcode() || A == B ||
----------------
SamTebbs33 wrote:

I don't think there is such a case, since if A and B are equal but the opcodes 
are different then they'd have to be defined by different recipes, in which 
case they can't be equal since they're different objects. The check was already 
here so I thought I'd leave it but I can try removing it and seeing if it fails 
any tests.

https://github.com/llvm/llvm-project/pull/147302
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to