[all-commits] [llvm/llvm-project] e82cac: [AArch64][SME] Set fn attributes correctly on __ar...

sdesmalen-arm via All-commits all-commits at lists.llvm.org
Fri Oct 28 00:35:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e82cace1244f131ddffe12c09910c756043dfcc3
      https://github.com/llvm/llvm-project/commit/e82cace1244f131ddffe12c09910c756043dfcc3
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2022-10-28 (Fri, 28 Oct 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/SMEABIPass.cpp
    M llvm/test/CodeGen/AArch64/sme-new-za-function.ll

  Log Message:
  -----------
  [AArch64][SME] Set fn attributes correctly on __arm_tpidr2_save call.

Changing the way the attribute is created changes the way the attribute
is added. Now it seems to be correctly added as a function attribute, whereas
before it was not. This led ISel ignoring attributes and setting up a lazy-save
buffer for the call to __arm_tpidr2_save.

This patch also marks the intrinsic call as 'preserves_za' which together with the
above prevents the code-generator from setting up a lazy-save buffer.

Reviewed By: kmclaughlin

Differential Revision: https://reviews.llvm.org/D136342




More information about the All-commits mailing list