[PATCH] D63677: [ARM] Don't reserve R12 on Thumb1 as an emergency spill slot.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 25 14:21:29 PDT 2019


efriedma added a comment.

> The third instruction in the function looks like it is using r6 as the base pointer to save one of the argument registers on the stack, but r6 isn't set until further down.

Yes, it looks like we're trying to scavenge a register inside the function's prologue.  Probably straightforward to fix: when we're generating the prologue/epilogue, we should be able to directly pick a free register, since we know we're emitting the code immediately after callee-save registers are spilled.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D63677





More information about the llvm-commits mailing list