[Lldb-commits] [lldb] [lldb][AArch64] Correctly invalidate svg when vg is written (PR #140875)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 17 21:26:14 PDT 2025


================
@@ -425,7 +425,7 @@ void RegisterInfoPOSIX_arm64::AddRegSetSME(bool has_zt) {
   //
   // This must be added now, rather than when vg is defined because SME is a
   // dynamic set that may or may not be present.
-  static uint32_t vg_invalidates[] = {sme_regnum + 1 /*svg*/,
+  static uint32_t vg_invalidates[] = {first_sme_regnum + 1 /*svg*/,
----------------
jasonmolenda wrote:

Would it be better as `vg_invalidates[] = {GetRegNumSMESVG(), 0};` keeping in line with the use of `GetRegNumSVEVG()` below?

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


More information about the lldb-commits mailing list