This patch is part of a larger initiative aimed at fixing floating-point max and min operations in MLIR: https://discourse.llvm.org/t/rfc-fix-floating-point-max-and-min-operations-in-mlir/72671.
Here, we are addressing task 2.1 from the plan, which involves renaming the vector reductions to align with the semantics of the corresponding LLVM intrinsics.
We also need a workaround for this before landing or https://github.com/llvm/llvm-project/issues/64940 to be fixed. Masked reductions are common to be generate. We could generate a vector select that sets the masked-out elements of the input to the identity value, and then use the unmasked version of the intrinsics.