[all-commits] [llvm/llvm-project] fb470d: [AArch64] Avoid inlining if ZT0 needs preserving. ...

Sander de Smalen via All-commits all-commits at lists.llvm.org
Fri Aug 2 02:29:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb470db7b3a8ce6853e8bf17d235617a2fa79434
      https://github.com/llvm/llvm-project/commit/fb470db7b3a8ce6853e8bf17d235617a2fa79434
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2024-08-02 (Fri, 02 Aug 2024)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    M llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll

  Log Message:
  -----------
  [AArch64] Avoid inlining if ZT0 needs preserving. (#101343)

Inlining may result in different behaviour when the callee clobbers ZT0,
because normally the call-site will have code to preserve ZT0. When
inlining the function this code to preserve ZT0 will no longer be
emitted, and so the resulting behaviour of the program is changed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list