diff options
author | Vasileios Porpodas <vporpodas@google.com> | 2022-11-23 14:53:00 -0800 |
---|---|---|
committer | Vasileios Porpodas <vporpodas@google.com> | 2022-11-23 22:47:46 -0800 |
commit | af4e856fa71c6b5086aeda79bfcd954e98cef591 (patch) | |
tree | a22619357ddbe79735f53b3c8fff7a5e61ba2084 /llvm/lib/Transforms/Utils/LoopPeel.cpp | |
parent | fbcdf4a4fb9e51039877cc92bb18407416a158d7 (diff) | |
download | llvm-af4e856fa71c6b5086aeda79bfcd954e98cef591.zip llvm-af4e856fa71c6b5086aeda79bfcd954e98cef591.tar.gz llvm-af4e856fa71c6b5086aeda79bfcd954e98cef591.tar.bz2 |
[NFC] Replaced BB->getInstList().{erase(),pop_front(),pop_back()} with eraseFromParent().
Differential Revision: https://reviews.llvm.org/D138617
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopPeel.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopPeel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopPeel.cpp b/llvm/lib/Transforms/Utils/LoopPeel.cpp index b7e3eb2..c61feff 100644 --- a/llvm/lib/Transforms/Utils/LoopPeel.cpp +++ b/llvm/lib/Transforms/Utils/LoopPeel.cpp @@ -673,7 +673,7 @@ static void cloneLoopBlocks( else VMap[&*I] = LatchVal; } - cast<BasicBlock>(VMap[Header])->getInstList().erase(NewPHI); + NewPHI->eraseFromParent(); } // Fix up the outgoing values - we need to add a value for the iteration |