[PATCH] D64910: [IPRA][ARM] Disable no-CSR optimisation for ARM

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 18 03:25:37 PDT 2019


lebedev.ri added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/TargetFrameLowering.h:367-369
   /// Check if given function is safe for not having callee saved registers.
   /// This is used when interprocedural register allocation is enabled.
+  virtual bool enableNoCSROpt(const Function &F) const {
----------------
Why not just add the `enableNoCSROpt()` hook instead?
The existing `isSafeForNoCSROpt()` seems well-defined..


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D64910





More information about the llvm-commits mailing list