[llvm] [AArch64][SME] Disable inlining of callees with new ZT0 state (PR #121338)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 30 07:02:22 PST 2024


================
@@ -256,7 +256,7 @@ bool AArch64TTIImpl::areInlineCompatible(const Function *Caller,
     CalleeAttrs.set(SMEAttrs::SM_Enabled, true);
   }
 
-  if (CalleeAttrs.isNewZA())
----------------
MacDue wrote:

Should there be a similar restriction in clang (to ensure `always_inline`/`flatten` behave correctly)?

https://github.com/llvm/llvm-project/blob/42dfaa15a60cea6cd75a2efb419aa2c206d2a127/clang/lib/CodeGen/Targets/AArch64.cpp#L1201-L1203

https://github.com/llvm/llvm-project/pull/121338


More information about the llvm-commits mailing list