[llvm] [CodeGen] Expand fmaximum/fminimum reductions (PR #195169)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 06:18:13 PDT 2026
================
@@ -158,6 +160,19 @@ bool expandReductions(Function &F, const TargetTransformInfo *TTI,
Rdx = getShuffleReduction(Builder, Vec, RdxOpcode, RS, RK);
break;
}
+ case Intrinsic::vector_reduce_fmaximum:
+ case Intrinsic::vector_reduce_fminimum: {
+ // We require "nnan" to use a shuffle reduction; "nsz" is implied by the
----------------
arsenm wrote:
I don't understand why nnan is required, or power of 2 is required
https://github.com/llvm/llvm-project/pull/195169
More information about the llvm-commits
mailing list