diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 6e420632d83e5..3ce9d29d34553 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -8793,8 +8793,8 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes( // Apply mandatory transformation to handle FP maxnum/minnum reduction with // NaNs if possible, bail out otherwise. - if (!VPlanTransforms::runPass( - VPlanTransforms::handleMaxMinNumReductionsWithoutFastMath, *Plan)) + if (!VPlanTransforms::runPass(VPlanTransforms::handleMaxMinNumReductions, + *Plan)) return nullptr; // Transform recipes to abstract recipes if it is legal and beneficial and diff --git a/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp b/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp index faae8f15b0f6d..194874af547e4 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp @@ -653,7 +653,7 @@ void VPlanTransforms::attachCheckBlock(VPlan &Plan, Value *Cond, } } -bool VPlanTransforms::handleMaxMinNumReductionsWithoutFastMath(VPlan &Plan) { +bool VPlanTransforms::handleMaxMinNumReductions(VPlan &Plan) { auto GetMinMaxCompareValue = [](VPReductionPHIRecipe *RedPhiR) -> VPValue * { auto *MinMaxR = dyn_cast( RedPhiR->getBackedgeValue()->getDefiningRecipe()); diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.h b/llvm/lib/Transforms/Vectorize/VPlanTransforms.h index 04cb7a7a5c19b..ab189f6d39bce 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.h +++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.h @@ -107,7 +107,7 @@ struct VPlanTransforms { /// try to update the vector loop to exit early if any input is NaN and resume /// executing in the scalar loop to handle the NaNs there. Return false if /// this attempt was unsuccessful. - static bool handleMaxMinNumReductionsWithoutFastMath(VPlan &Plan); + static bool handleMaxMinNumReductions(VPlan &Plan); /// Clear NSW/NUW flags from reduction instructions if necessary. static void clearReductionWrapFlags(VPlan &Plan);