[llvm] [RISCV] Form vredsum from explode_vector + scalar (left) reduce (PR #67821)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 29 09:40:03 PDT 2023


================
@@ -11122,6 +11122,85 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
   }
 }
 
+/// Perform two related transforms whose purpose is to incrementally recognize
+/// an explode_vector followed by scalar reduction as a vector reduction node.
+/// This exists to recover from a deficiency in SLP which can't handle
+/// forrests with multiple roots sharing common nodes.  In some cases, one
----------------
topperc wrote:

forrests -> forests

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


More information about the llvm-commits mailing list