[llvm] b469021 - [NFC] Cleanup: Replace BB->InstList.splice() with BB->splice()
Vasileios Porpodas via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 2 16:08:50 PST 2022
Author: Vasileios Porpodas
Date: 2022-12-02T16:00:31-08:00
New Revision: b46902117c376ba3990a744cc84f55e191d6e922
URL: https://github.com/llvm/llvm-project/commit/b46902117c376ba3990a744cc84f55e191d6e922
DIFF: https://github.com/llvm/llvm-project/commit/b46902117c376ba3990a744cc84f55e191d6e922.diff
LOG: [NFC] Cleanup: Replace BB->InstList.splice() with BB->splice()
Differential Revision: https://reviews.llvm.org/D139236
Added:
Modified:
llvm/lib/IR/BasicBlock.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp
index 16addda83e42..68de6c45e933 100644
--- a/llvm/lib/IR/BasicBlock.cpp
+++ b/llvm/lib/IR/BasicBlock.cpp
@@ -415,7 +415,7 @@ BasicBlock *BasicBlock::splitBasicBlock(iterator I, const Twine &BBName,
DebugLoc Loc = I->getDebugLoc();
// Move all of the specified instructions from the original basic block into
// the new basic block.
- New->getInstList().splice(New->end(), this->getInstList(), I, end());
+ New->splice(New->end(), this, I, end());
// Add a branch instruction to the newly formed basic block.
BranchInst *BI = BranchInst::Create(New, this);
@@ -444,7 +444,7 @@ BasicBlock *BasicBlock::splitBasicBlockBefore(iterator I, const Twine &BBName) {
DebugLoc Loc = I->getDebugLoc();
// Move all of the specified instructions from the original basic block into
// the new basic block.
- New->getInstList().splice(New->end(), this->getInstList(), begin(), I);
+ New->splice(New->end(), this, begin(), I);
// Loop through all of the predecessors of the 'this' block (which will be the
// predecessors of the New block), replace the specified successor 'this'
More information about the llvm-commits
mailing list