[PATCH] D89483: [ARM][MachineOutliner] Emit more CFI instructions

Daniel Kiss via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 5 15:00:30 PST 2020


danielkiss added inline comments.


================
Comment at: llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp:6196
+  int64_t LRPosEntry =
+      MF.addFrameInst(MCCFIInstruction::createSameValue(nullptr, DwarfLR));
+  BuildMI(MBB, It, DebugLoc(), get(ARM::CFI_INSTRUCTION))
----------------
I would generate a `.cfi_restore lr` here for the first sight.
The LR in the caller is saved on the stack probably so here the value of the LR is different because that is set by the `bl`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89483/new/

https://reviews.llvm.org/D89483



More information about the llvm-commits mailing list