[llvm] [AArch64] Don't inline streaming Fn if caller has no SVE (PR #150595)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 25 05:21:10 PDT 2025
================
@@ -280,16 +280,22 @@ bool AArch64TTIImpl::areInlineCompatible(const Function *Caller,
if (CallAttrs.callee().isNewZA() || CallAttrs.callee().isNewZT0())
return false;
+ const TargetMachine &TM = getTLI()->getTargetMachine();
+ const FeatureBitset &CallerBits =
+ TM.getSubtargetImpl(*Caller)->getFeatureBits();
+
+ // Cannot inline a streaming function into a non-streaming function,
+ // if the caller has no SVE.
----------------
MacDue wrote:
I think checking here is okay, but this feels like something `hasPossibleIncompatibleOps` should notice (given in your example, the use of scalable types makes the operations incompatible).
https://github.com/llvm/llvm-project/pull/150595
More information about the llvm-commits
mailing list