[PATCH] D124615: [AArch64][SVE] Restore SP from base pointer when it and SVE frame are present

Bradley Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 29 03:47:51 PDT 2022


bsmith added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64FrameLowering.cpp:1961
+      TII->copyPhysReg(MBB, RestoreBegin, DL, AArch64::SP,
+                       RegInfo.getBaseRegister(), false);
+
----------------
efriedma wrote:
> Do we need to use emitFrameOffset() here?
I'm not sure we should/need to, the allocation of the variable length array that leads to the changing of the stack pointer does not happen during frame lowering, but rather during isel lowering, hence it does not have the usual frame-setup flag etc. As such I'm not sure this, which is just reverting that, should have the frame-destroy flag etc either, however I'm not sure about this.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124615



More information about the llvm-commits mailing list