Skip to content

Commit 1832282

Browse files
committed
!fixup fix after merge.
1 parent cf165c5 commit 1832282

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -746,14 +746,13 @@ VPRegionBlock *VPRegionBlock::clone() {
746746
VPRegionBlock *NewRegion =
747747
isReplicator()
748748
? Plan.createReplicateRegion(NewEntry, NewExiting, getName())
749-
: Plan.createLoopRegion(getName(), NewEntry, NewExiting);
749+
: Plan.createLoopRegion(CanIVInfo->getType(),
750+
CanIVInfo->getDebugLoc(), getName(), NewEntry,
751+
NewExiting);
750752

751753
for (VPBlockBase *Block : vp_depth_first_shallow(NewEntry))
752754
Block->setParent(NewRegion);
753755

754-
if (CanIVInfo)
755-
NewRegion->CanIVInfo = CanIVInfo->clone();
756-
757756
return NewRegion;
758757
}
759758

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4424,11 +4424,11 @@ class VPlan {
44244424
/// Create a new loop region with \p Name and entry and exiting blocks set
44254425
/// to \p Entry and \p Exiting respectively, if set. The returned block is
44264426
/// owned by the VPlan and deleted once the VPlan is destroyed.
4427-
VPRegionBlock *createLoopRegion(const std::string &Name = "",
4427+
VPRegionBlock *createLoopRegion(Type *CanIVTy, DebugLoc DL,
4428+
const std::string &Name = "",
44284429
VPBlockBase *Entry = nullptr,
44294430
VPBlockBase *Exiting = nullptr) {
4430-
auto *VPB = Entry ? new VPRegionBlock(Entry, Exiting, Name)
4431-
: new VPRegionBlock(Name);
4431+
auto *VPB = new VPRegionBlock(CanIVTy, DL, Entry, Exiting, Name);
44324432
CreatedBlocks.push_back(VPB);
44334433
return VPB;
44344434
}
@@ -4438,7 +4438,7 @@ class VPlan {
44384438
/// destroyed.
44394439
VPRegionBlock *createReplicateRegion(VPBlockBase *Entry, VPBlockBase *Exiting,
44404440
const std::string &Name = "") {
4441-
auto *VPB = new VPRegionBlock(Entry, Exiting, Name, true);
4441+
auto *VPB = new VPRegionBlock(Entry, Exiting, Name);
44424442
CreatedBlocks.push_back(VPB);
44434443
return VPB;
44444444
}

0 commit comments

Comments
 (0)