[llvm] [CodeGen] Distinguish zero-sized call frames from no call frame in MachineBB (PR #106964)

Fabian Ritter via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 16 01:08:35 PDT 2024


================
@@ -3837,11 +3837,11 @@ void MachineVerifier::verifyStackFrame() {
       BBState.ExitIsSetup = BBState.EntryIsSetup;
     }
 
-    if ((int)MBB->getCallFrameSize() != -BBState.EntryValue) {
+    if ((int)MBB->getCallFrameSizeOrZero() != -BBState.EntryValue) {
----------------
ritter-x2a wrote:

@jayfoad I just updated this PR to (re)compute the call frame sizes on demand instead of storing them. The compile-time overhead seems to be relatively minor ([see the CT report of the entire PR stack here](https://llvm-compile-time-tracker.com/compare.php?from=34b10e165d809bb133d37dfe934859800f21a100&to=1bd72c4ba6c98ced84b3d7d372dc8a3bc7aee7e9&stat=instructions%3Au)).

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


More information about the llvm-commits mailing list