diff options
| author | Vasileios Porpodas <vporpodas@google.com> | 2022-12-13 15:49:48 -0800 |
|---|---|---|
| committer | Vasileios Porpodas <vporpodas@google.com> | 2022-12-14 15:34:19 -0800 |
| commit | dc891846b811cdf945e2cdacd9b227c2d0966e71 (patch) | |
| tree | d7fa49c96ad4036a4c9d7763f81677e664cbadd0 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
| parent | 9e8f6772990131d6aa62ba7010907d9dceb45d08 (diff) | |
[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.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp index f063438c7c41..a6c32a11a576 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 |
