[PEI][NFC] Refactoring of the debug instructions frame index replacement
authorAlexander Timofeev <alexander.timofeev@amd.com>
Wed, 9 Nov 2022 22:05:44 +0000 (23:05 +0100)
committerAlexander Timofeev <alexander.timofeev@amd.com>
Thu, 10 Nov 2022 13:02:03 +0000 (14:02 +0100)
commit27091e62279c67f80d40492ab512de5d2da29a75
treed53d9cb9b8e79beefcc70bad6ab008a5bc594d7e
parent0436cf5f52175a2a97d4cf2ff30fac54df7645b5
[PEI][NFC] Refactoring of the debug instructions frame index replacement

This is required for the upcoming backward PEI::replaceFrameIndices version.
Both forward and backward versions will use same code for debug instruction processing.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D137741
llvm/lib/CodeGen/PrologEpilogInserter.cpp