[PATCH] D125094: [ARM][Thumb] Command-line option to ensure AAPCS compliant Frame Records

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 7 12:40:09 PDT 2022


efriedma added inline comments.


================
Comment at: llvm/test/CodeGen/Thumb/frame-access.ll:335
+; CHECK-FP-AAPCS: mov r1, r11
+; CHECK-FP-AAPCS: ldr r0, [r0, r1]
+; CHECK: bl i
----------------
This sequence requires, in general, scavenging two registers.  I'm not sure we can do that in general?  I think we normally only have one emergency spill slot.

Maybe we can save a register using add instead of mov; something like `ldr r0, .LCPI0_0; add r0, r11; ldr r0, [r0]`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125094



More information about the cfe-commits mailing list