File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -752,15 +752,13 @@ void VPRegionBlock::execute(VPTransformState *State) {
752
752
753
753
if (!isReplicator ()) {
754
754
// Create and register the new vector loop.
755
- Loop *PrevLoop = State->CurrentParentLoop ;
755
+ Loop *PrevParentLoop = State->CurrentParentLoop ;
756
756
State->CurrentParentLoop = State->LI ->AllocateLoop ();
757
- BasicBlock *VectorPH = State->CFG .VPBB2IRBB [getPreheaderVPBB ()];
758
- Loop *ParentLoop = State->LI ->getLoopFor (VectorPH);
759
757
760
758
// Insert the new loop into the loop nest and register the new basic blocks
761
759
// before calling any utilities such as SCEV that require valid LoopInfo.
762
- if (ParentLoop )
763
- ParentLoop ->addChildLoop (State->CurrentParentLoop );
760
+ if (PrevParentLoop )
761
+ PrevParentLoop ->addChildLoop (State->CurrentParentLoop );
764
762
else
765
763
State->LI ->addTopLevelLoop (State->CurrentParentLoop );
766
764
@@ -770,7 +768,7 @@ void VPRegionBlock::execute(VPTransformState *State) {
770
768
Block->execute (State);
771
769
}
772
770
773
- State->CurrentParentLoop = PrevLoop ;
771
+ State->CurrentParentLoop = PrevParentLoop ;
774
772
return ;
775
773
}
776
774
You can’t perform that action at this time.
0 commit comments