aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.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/LoopUnrollRuntime.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/LoopUnrollRuntime.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
index f063438..a6c32a1 100644
--- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
@@ -812,10 +812,7 @@ bool llvm::UnrollRuntimeLoopRemainder(
updateLatchBranchWeightsForRemainderLoop(L, remainderLoop, Count);
// Insert the cloned blocks into the function.
- F->getBasicBlockList().splice(InsertBot->getIterator(),
- F->getBasicBlockList(),
- NewBlocks[0]->getIterator(),
- F->end());
+ F->splice(InsertBot->getIterator(), F, NewBlocks[0]->getIterator(), F->end());
// Now the loop blocks are cloned and the other exiting blocks from the
// remainder are connected to the original Loop's exit blocks. The remaining