[llvm] Move assertion for AdjustsStack from PEI to MachineVerifier. (PR #85698)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 23:38:12 PDT 2024


================
@@ -3697,6 +3697,9 @@ void MachineVerifier::verifyStackFrame() {
       if (I.getOpcode() == FrameSetupOpcode) {
         if (BBState.ExitIsSetup)
           report("FrameSetup is after another FrameSetup", &I);
+        if (!MRI->isSSA() && !MF->getFrameInfo().adjustsStack())
----------------
arsenm wrote:

We probably should have something better than isSSA. I've thought before we needed a FrameFinalized MachineFunction Property 

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


More information about the llvm-commits mailing list