[PATCH] D116424: [ShrinkWrap] check for PPC's non-callee-saved LR

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 5 14:43:35 PST 2022


nickdesaulniers marked 4 inline comments as done.
nickdesaulniers added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCRegisterInfo.h:190
+  bool isNonallocatableRegisterCalleeSave(MCRegister Reg) const override {
+    return Reg == PPC::LR || Reg == PPC::LR8;
+  }
----------------
nickdesaulniers wrote:
> I should probably assert that PPC::LR and PPC::LR8 are not callee saved, since that's the whole point of this interface.
I've modified `TargetRegisterInfo::isNonallocatableRegisterCalleeSave` since you accepted this patch, @efriedma , PTAL.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116424



More information about the llvm-commits mailing list