[llvm] 96ba9d3 - [VPlan] Only consider recipes in loop region in planContainsSimp. (NFCI)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 19 12:12:48 PDT 2024
Author: Florian Hahn
Date: 2024-09-19T20:11:13+01:00
New Revision: 96ba9d372de522e836859d143f0cdab557277975
URL: https://github.com/llvm/llvm-project/commit/96ba9d372de522e836859d143f0cdab557277975
DIFF: https://github.com/llvm/llvm-project/commit/96ba9d372de522e836859d143f0cdab557277975.diff
LOG: [VPlan] Only consider recipes in loop region in planContainsSimp. (NFCI)
Limit checks in planContainsAdditionalSimplifications to recipes in the
vector loop region.
Preparation for https://github.com/llvm/llvm-project/pull/107894.
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 1a4aaa66a84cb9..9f554827a8287d 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -7286,7 +7286,7 @@ static bool planContainsAdditionalSimplifications(VPlan &Plan,
};
DenseSet<Instruction *> SeenInstrs;
- auto Iter = vp_depth_first_deep(Plan.getEntry());
+ auto Iter = vp_depth_first_deep(Plan.getVectorLoopRegion()->getEntry());
for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(Iter)) {
for (VPRecipeBase &R : *VPBB) {
if (auto *IR = dyn_cast<VPInterleaveRecipe>(&R)) {
More information about the llvm-commits
mailing list