Skip to content

Commit ff36508

Browse files
committed
[VPlan] Remove redundant setting of parent in createLoopRegion (NFC).
The regions parents will be set when the parents are set after creating the parent region.
1 parent 0fdb908 commit ff36508

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ static void createLoopRegion(VPlan &Plan, VPBlockBase *HeaderVPB) {
430430

431431
auto *R = Plan.createVPRegionBlock(HeaderVPB, LatchVPBB, "",
432432
false /*isReplicator*/);
433-
R->setParent(HeaderVPB->getParent());
434433
// All VPBB's reachable shallowly from HeaderVPB belong to top level loop,
435434
// because VPlan is expected to end at top level latch disconnected above.
436435
for (VPBlockBase *VPBB : vp_depth_first_shallow(HeaderVPB))

0 commit comments

Comments
 (0)