[llvm] 654cd94 - [VPlan] Unconditionally run optimizeForVFAndUF.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 06:39:18 PDT 2024
Author: Florian Hahn
Date: 2024-05-31T06:32:49-07:00
New Revision: 654cd946296586e00c8d2f203a137b6a6b0d8be7
URL: https://github.com/llvm/llvm-project/commit/654cd946296586e00c8d2f203a137b6a6b0d8be7
DIFF: https://github.com/llvm/llvm-project/commit/654cd946296586e00c8d2f203a137b6a6b0d8be7.diff
LOG: [VPlan] Unconditionally run optimizeForVFAndUF.
Now that the VPlan for the main vector loop gets cloned in the epilogue
vectorization code path, there optimizeForVFAndUF can be applied
unconditionally.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index a9ee9f62197e1..51221481b1ca1 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -7499,9 +7499,9 @@ LoopVectorizationPlanner::executePlan(
assert(
(IsEpilogueVectorization || !ExpandedSCEVs) &&
"expanded SCEVs to reuse can only be used during epilogue vectorization");
+ (void)IsEpilogueVectorization;
- if (!IsEpilogueVectorization)
- VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
+ VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
LLVM_DEBUG(dbgs() << "Executing best plan with VF=" << BestVF
<< ", UF=" << BestUF << '\n');
More information about the llvm-commits
mailing list