[NFC][Thumb1] Use FrameDestroy flag to identify epilog instructions
authorLucas Prates <lucas.prates@arm.com>
Mon, 23 May 2022 15:40:38 +0000 (16:40 +0100)
committerLucas Prates <lucas.prates@arm.com>
Mon, 13 Jun 2022 09:19:10 +0000 (10:19 +0100)
commit7775124b5c9deeac5408b47a0677f4573a2e2332
tree42371dff1cc678ad9b8c117b4d809fec8ddaf795
parent8ab925a2fdcf857edf16d9cb104c9007965e025c
[NFC][Thumb1] Use FrameDestroy flag to identify epilog instructions

Simiarly to what's done on both ARM's and AArch64's frame lowering code,
this updates Thumb1FrameLowering to use the FrameDestroy Machine
Instruction flag to identify instructions inserted as part of the epilog
instead of relying on assumptions about specific machine instructions.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D126285
llvm/lib/Target/ARM/Thumb1FrameLowering.cpp