[llvm] [RISCV] Migrate zvqdotq reduce matching to use partial_reduce infrastructure (PR #142212)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 9 11:32:02 PDT 2025


================
@@ -18455,61 +18430,62 @@ static SDValue foldReduceOperandViaVQDOT(SDValue InVec, const SDLoc &DL,
     }
   }
 
-  // reduce (zext a) <--> reduce (mul zext a. zext 1)
-  // reduce (sext a) <--> reduce (mul sext a. sext 1)
+  // reduce (zext a) <--> partial_reduce_umla 0, a, 1
----------------
topperc wrote:

There's still an outer reduce after the partial_reduce right?

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


More information about the llvm-commits mailing list