[PATCH] D104521: [InstrRef][AArch64][2/4] Recognise post-fe spills and restores

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 6 12:59:52 PDT 2021


efriedma added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64InstrInfo.cpp:2190
+        (MI.getOperand(1).getReg() == AArch64::SP ||
+         MI.getOperand(1).getReg() == AArch64::WSP))
+      return MI.getOperand(0).getReg();
----------------
Why does it matter if the address computation SP, as opposed to the frame pointer or a scratch register?  It's a load from a stack slot either way.


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

https://reviews.llvm.org/D104521



More information about the llvm-commits mailing list