[llvm] [AArch64][SME] Rework VG CFI information for streaming-mode changes (PR #152283)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 6 07:56:50 PDT 2025


================
@@ -338,9 +338,11 @@ static bool requiresSaveVG(const MachineFunction &MF);
 // Conservatively, returns true if the function is likely to have an SVE vectors
 // on the stack. This function is safe to be called before callee-saves or
 // object offsets have been determined.
-static bool isLikelyToHaveSVEStack(MachineFunction &MF) {
+static bool isLikelyToHaveSVEStack(const MachineFunction &MF) {
   auto *AFI = MF.getInfo<AArch64FunctionInfo>();
-  if (AFI->isSVECC())
+  if (MF.getFunction().getCallingConv() ==
+          CallingConv::AArch64_SVE_VectorCall ||
----------------
sdesmalen-arm wrote:

`AFI->isSVECC()` should return `true` if the function has a `AArch64_SVE_VectorCall` calling convention. If that is not the case, then this needs to be fixed in AArch64ISelLowering where IsSVECC is set.

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


More information about the llvm-commits mailing list