[NFC] Replaces: BB->getInstList().erase(I) with I->eraseFromParent().
authorVasileios Porpodas <vporpodas@google.com>
Tue, 29 Nov 2022 01:35:34 +0000 (17:35 -0800)
committerVasileios Porpodas <vporpodas@google.com>
Tue, 13 Dec 2022 00:22:12 +0000 (16:22 -0800)
commit4c5469e2c0c5f9d1410e0dae61a5bb068c720e2b
treec44a633782ceb29cf35bdbc8e8c979a3c47016c6
parent119f977d9e3f8af9f5ac54270e828e354452f903
[NFC] Replaces: BB->getInstList().erase(I) with I->eraseFromParent().

Differential Revision: https://reviews.llvm.org/D138976
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp