[llvm] [AArch64] Add check that prologue insertion doesn't clobber live regs. (PR #71826)

Momchil Velikov via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 10:41:44 PST 2023


================
@@ -1908,6 +1940,19 @@ void AArch64FrameLowering::emitPrologue(MachineFunction &MF,
     emitCalleeSavedGPRLocations(MBB, MBBI);
     emitCalleeSavedSVELocations(MBB, MBBI);
   }
+
+#ifndef NDEBUG
----------------
momchil-velikov wrote:

We've got a few early returns, maybe wrap this in `make_scope_exit`.

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


More information about the llvm-commits mailing list