[llvm] [CodeGen] Expand fmaximum/fminimum reductions (PR #195169)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 06:17:34 PDT 2026


================
@@ -475,6 +475,16 @@ InstructionCost WebAssemblyTTIImpl::getPartialReductionCost(
   return Invalid;
 }
 
+bool WebAssemblyTTIImpl::shouldExpandReduction(const IntrinsicInst *II) const {
----------------
arsenm wrote:

This TTI hook really shouldn't exist. The expansion pass should go based on whether the operation for the corresponding node is Expand 

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


More information about the llvm-commits mailing list