[llvm] [AArch64][SME] Rework VG CFI information for streaming-mode changes (PR #152283)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 11 07:04:40 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 ||
----------------
MacDue wrote:
I'm not sure if `IsSVECC` should be set for `AArch64_SVE_VectorCall`, I think `IsSVECC` is somewhat poorly named (and is more like `hasSVEInterface` -- as in it has an SVE result or parameter) -- that's actually what the doc common on the flag says.
https://github.com/llvm/llvm-project/pull/152283
More information about the llvm-commits
mailing list