[all-commits] [llvm/llvm-project] 945f6e: Wrap debug code with the LLVM_DEBUG macro; NFC

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue May 9 12:55:55 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 945f6e65be0d20b3446e7c1537c64151de618af4
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-05-09 (Tue, 09 May 2023)

  Changed paths:
    M llvm/lib/CodeGen/PrologEpilogInserter.cpp

  Log Message:
  Wrap debug code with the LLVM_DEBUG macro; NFC

While investigating a bug in Clang, I noticed that -Wframe-larger-than
was emitting extra debug information along with the diagnostic. It
turns out that 2e1e2f52f357768186ecfcc5ac53d5fa53d1b094 fixed an issue
with the diagnostic, but accidentally left in some debug code that was
exposed in all builds.

So now we no longer emit things like:
8/4294967304 (0.00%) spills, 4294967296/4294967304 (100.00%) variables
along with the diagnostic

More information about the All-commits mailing list