[PATCH] D112073: [PowerPC] Emit warning when SP is clobbered by asm

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 23 06:27:06 PST 2021


shchenz added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:396
+  // The stack pointer (R1) is not clobberable by inline asm
+  return PhysReg != PPC::R1;
+}
----------------
PowerPC overrides `getReservedRegs()`, why don't we use this function and only warn for `R1` even no `X1`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112073



More information about the llvm-commits mailing list