Skip to content

Commit 4dfba5d

Browse files
committed
!fixup update
1 parent 10e747a commit 4dfba5d

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ void VPTransformState::packScalarIntoVectorValue(VPValue *Def,
400400
set(Def, VectorValue, Instance.Part);
401401
}
402402

403-
BasicBlock *VPBasicBlock::createEmptyBasicBlock(VPTransformState::CFGState &CFG,
404-
DomTreeUpdater &DTU) {
403+
BasicBlock *
404+
VPBasicBlock::createEmptyBasicBlock(VPTransformState::CFGState &CFG) {
405405
// BB stands for IR BasicBlocks. VPBB stands for VPlan VPBasicBlocks.
406406
// Pred stands for Predessor. Prev stands for Previous - last visited/created.
407407
BasicBlock *PrevBB = CFG.PrevBB;
@@ -516,7 +516,7 @@ void VPBasicBlock::execute(VPTransformState *State) {
516516
// is the exiting VPBB of this region from a previous instance, or the
517517
// predecessor of this region.
518518

519-
NewBB = createEmptyBasicBlock(State->CFG, State->DTU);
519+
NewBB = createEmptyBasicBlock(State->CFG);
520520
State->Builder.SetInsertPoint(NewBB);
521521
// Temporarily terminate with unreachable until CFG is rewired.
522522
UnreachableInst *Terminator = State->Builder.CreateUnreachable();

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,6 @@ struct VPTransformState {
412412

413413
/// VPlan-based type analysis.
414414
VPTypeAnalysis TypeAnalysis;
415-
416-
/// Updater for the DominatorTree.
417-
DomTreeUpdater DTU;
418415
};
419416

420417
/// VPBlockBase is the building block of the Hierarchical Control-Flow Graph.
@@ -2999,8 +2996,7 @@ class VPBasicBlock : public VPBlockBase {
29992996
private:
30002997
/// Create an IR BasicBlock to hold the output instructions generated by this
30012998
/// VPBasicBlock, and return it. Update the CFGState accordingly.
3002-
BasicBlock *createEmptyBasicBlock(VPTransformState::CFGState &CFG,
3003-
DomTreeUpdater &DTU);
2999+
BasicBlock *createEmptyBasicBlock(VPTransformState::CFGState &CFG);
30043000
};
30053001

30063002
/// VPRegionBlock represents a collection of VPBasicBlocks and VPRegionBlocks

0 commit comments

Comments
 (0)