[llvm] 01c26d4 - [LV] Rename Region to TargetRegion, similar to SinkRegion (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 7 13:27:31 PDT 2021
Author: Florian Hahn
Date: 2021-05-07T21:25:35+01:00
New Revision: 01c26d4e048cf9812e7675cb704c2a4461b68e4c
URL: https://github.com/llvm/llvm-project/commit/01c26d4e048cf9812e7675cb704c2a4461b68e4c
DIFF: https://github.com/llvm/llvm-project/commit/01c26d4e048cf9812e7675cb704c2a4461b68e4c.diff
LOG: [LV] Rename Region to TargetRegion, similar to SinkRegion (NFC).
Adjust the name to make it clearer this is the region containing the
target recipe, similar to SinkRegion below.
Suggested post-commit for ccebf7a1096a.
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 b99b676659e9..5b61734a1812 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -9118,12 +9118,13 @@ VPlanPtr LoopVectorizationPlanner::buildVPlanWithVPRecipes(
// If the target is in a replication region, make sure to move Sink to the
// block after it, not into the replication region itself.
- if (auto *Region =
+ if (auto *TargetRegion =
dyn_cast_or_null<VPRegionBlock>(Target->getParent()->getParent())) {
- if (Region->isReplicator()) {
- assert(Region->getNumSuccessors() == 1 && "Expected SESE region!");
+ if (TargetRegion->isReplicator()) {
+ assert(TargetRegion->getNumSuccessors() == 1 &&
+ "Expected SESE region!");
VPBasicBlock *NextBlock =
- cast<VPBasicBlock>(Region->getSuccessors().front());
+ cast<VPBasicBlock>(TargetRegion->getSuccessors().front());
Sink->moveBefore(*NextBlock, NextBlock->getFirstNonPhi());
continue;
}
More information about the llvm-commits
mailing list