[llvm] [LV] Vectorize selecting last IV of min/max element. (PR #141431)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 21 08:01:06 PST 2025
================
@@ -933,7 +933,8 @@ bool VPlanTransforms::handleMaxMinNumReductions(VPlan &Plan) {
// If we exit early due to NaNs, compute the final reduction result based on
// the reduction phi at the beginning of the last vector iteration.
- auto *RdxResult = findComputeReductionResult(RedPhiR);
+ auto *RdxResult =
+ findReductionUser(RedPhiR, VPInstruction::ComputeReductionResult);
----------------
ayalz wrote:
MinMaxNum - with index, is another related pattern left for future support, worth (currently negative) testing?
https://github.com/llvm/llvm-project/pull/141431
More information about the llvm-commits
mailing list