[PATCH] D36160: Liveness issues in tail merging, and the ARM::LR saved-but-not-restored

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 4 10:38:39 PDT 2017


efriedma added a comment.

What happens if we keep the setRestored() hack, but move the ARM-specific code to call setRestored() on LR into assignCalleeSavedSpillSlots?

Long-term, the solution is probably to remove LR from CSI, make it an explicit operand of BX_RET/tail calls, and fix up prologue/epilogue lowering to do the right thing... but it's a much larger/trickier patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D36160





More information about the llvm-commits mailing list