From 7fe149cdf09d04fb8390b97c91bd9214c968cd3e Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Sun, 27 Oct 2024 16:22:18 +0100 Subject: [PATCH] [VPlan] Replace getIRBasicBlock with IRBB in VPIRBB::execute (NFC). Suggested in https://github.com/llvm/llvm-project/pull/109975. This makes the function consistent throughout. --- llvm/lib/Transforms/Vectorize/VPlan.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp index 44ffcb954a2842..0484543d2d0398 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp @@ -453,13 +453,13 @@ VPBasicBlock::createEmptyBasicBlock(VPTransformState::CFGState &CFG) { void VPIRBasicBlock::execute(VPTransformState *State) { assert(getHierarchicalSuccessors().size() <= 2 && "VPIRBasicBlock can have at most two successors at the moment!"); - State->Builder.SetInsertPoint(getIRBasicBlock()->getTerminator()); - executeRecipes(State, getIRBasicBlock()); + State->Builder.SetInsertPoint(IRBB->getTerminator()); + executeRecipes(State, IRBB); if (getSingleSuccessor()) { - assert(isa(getIRBasicBlock()->getTerminator())); - auto *Br = State->Builder.CreateBr(getIRBasicBlock()); + assert(isa(IRBB->getTerminator())); + auto *Br = State->Builder.CreateBr(IRBB); Br->setOperand(0, nullptr); - getIRBasicBlock()->getTerminator()->eraseFromParent(); + IRBB->getTerminator()->eraseFromParent(); } for (VPBlockBase *PredVPBlock : getHierarchicalPredecessors()) {