================
@@ -8287,6 +8289,13 @@ AArch64TargetLowering::LowerCall(CallLoweringInfo &CLI,
 
   SDValue InGlue;
   if (RequiresSMChange) {
+
+    if (Subtarget->hasSVE()) {
----------------
kmclaughlin-arm wrote:

If we still emit the spill of VG with `-fno-asynchronous-unwind-tables`, I 
don't know how we would be able to recover the correct value without the 
per-call CFI saves and restores. And without the correct VG value, I don't 
think it will be possible to recover any VG based values in the stack frame.

I'm still not sure why this wouldn't require a diagnostic, because if there is 
not enough information to recover VG then I don't think we can unwind correctly?

https://github.com/llvm/llvm-project/pull/83301
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to