aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorVasileios Porpodas <vporpodas@google.com>2022-12-13 15:49:48 -0800
committerVasileios Porpodas <vporpodas@google.com>2022-12-14 15:34:19 -0800
commitdc891846b811cdf945e2cdacd9b227c2d0966e71 (patch)
treed7fa49c96ad4036a4c9d7763f81677e664cbadd0 /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parent9e8f6772990131d6aa62ba7010907d9dceb45d08 (diff)
downloadllvm-dc891846b811cdf945e2cdacd9b227c2d0966e71.zip
llvm-dc891846b811cdf945e2cdacd9b227c2d0966e71.tar.gz
llvm-dc891846b811cdf945e2cdacd9b227c2d0966e71.tar.bz2
[NFC] Cleanup: Replace Function::getBasicBlockList().splice() with Function::splice()
This is part of a series of patches that aim at making Function::getBasicBlockList() private. Differential Revision: https://reviews.llvm.org/D139984
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
index c5d2fa7..87a0e54 100644
--- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
@@ -392,7 +392,7 @@ static BasicBlock *insertUniqueBackedgeBlock(Loop *L, BasicBlock *Preheader,
// Move the new backedge block to right after the last backedge block.
Function::iterator InsertPos = ++BackedgeBlocks.back()->getIterator();
- F->getBasicBlockList().splice(InsertPos, F->getBasicBlockList(), BEBlock);
+ F->splice(InsertPos, F, BEBlock->getIterator());
// Now that the block has been inserted into the function, create PHI nodes in
// the backedge block which correspond to any PHI nodes in the header block.