[PATCH] D156358: [AArch64] Do not unnecessarily spill LR because of @llvm.returnaddress

Ahmed Bougacha via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 28 14:02:15 PDT 2023


ab added a comment.

We tried to address this problem by adding an `XPACuntied` pseudo, only selecting that instead of the real instruction, and later (after regalloc, which is now unburdened by the tied nature of XPAC, like you're discussing) expanding it to add the mov if necessary:

  https://github.com/ahmedbougacha/llvm-project/commit/7924c7d75ae0015a9fd9786a580b10b2190bccc6

@atrosinenko do you want to try out that patch, see if it helps?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156358



More information about the llvm-commits mailing list