[PATCH] D131581: [AArch64][SME] Disable inlining when SME attributes require smstart/smstop or lazy-save.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 08:44:12 PDT 2022


sdesmalen created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
sdesmalen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Inlining must be disabled when the call-site needs to toggle PSTATE.SM or
when the callee's function body is executed in a different streaming mode than
its caller. This is needed because function calls are the boundaries for
streaming mode changes.

More details about the SME attributes and design can be found
in D131562 <https://reviews.llvm.org/D131562>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131581

Files:
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll
  llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131581.451498.patch
Type: text/x-patch
Size: 15575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220810/4118a7f5/attachment.bin>


More information about the llvm-commits mailing list