[llvm] c3ef6d4 - Move two LLVM_DEBUG banners after skippers
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 29 10:55:13 PST 2024
Author: Fangrui Song
Date: 2024-12-29T10:55:07-08:00
New Revision: c3ef6d469d89accd152c216ed8644783fb221c90
URL: https://github.com/llvm/llvm-project/commit/c3ef6d469d89accd152c216ed8644783fb221c90
DIFF: https://github.com/llvm/llvm-project/commit/c3ef6d469d89accd152c216ed8644783fb221c90.diff
LOG: Move two LLVM_DEBUG banners after skippers
so that they don't show in -debug output when they are not run.
Added:
Modified:
llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp
llvm/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp b/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp
index 687acd90b405c6..84374228431478 100644
--- a/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp
+++ b/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp
@@ -106,8 +106,6 @@ bool StackMapLiveness::runOnMachineFunction(MachineFunction &MF) {
if (!EnablePatchPointLiveness)
return false;
- LLVM_DEBUG(dbgs() << "********** COMPUTING STACKMAP LIVENESS: "
- << MF.getName() << " **********\n");
TRI = MF.getSubtarget().getRegisterInfo();
++NumStackMapFuncVisited;
@@ -121,6 +119,8 @@ bool StackMapLiveness::runOnMachineFunction(MachineFunction &MF) {
/// Performs the actual liveness calculation for the function.
bool StackMapLiveness::calculateLiveness(MachineFunction &MF) {
+ LLVM_DEBUG(dbgs() << "********** COMPUTING STACKMAP LIVENESS: "
+ << MF.getName() << " **********\n");
bool HasChanged = false;
// For all basic blocks in the function.
for (auto &MBB : MF) {
diff --git a/llvm/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp b/llvm/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp
index 3b370d8c3eb156..64728a20bd0761 100644
--- a/llvm/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp
+++ b/llvm/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp
@@ -57,8 +57,6 @@ char X86LoadValueInjectionRetHardeningPass::ID = 0;
bool X86LoadValueInjectionRetHardeningPass::runOnMachineFunction(
MachineFunction &MF) {
- LLVM_DEBUG(dbgs() << "***** " << getPassName() << " : " << MF.getName()
- << " *****\n");
const X86Subtarget *Subtarget = &MF.getSubtarget<X86Subtarget>();
if (!Subtarget->useLVIControlFlowIntegrity() || !Subtarget->is64Bit())
return false; // FIXME: support 32-bit
@@ -68,6 +66,8 @@ bool X86LoadValueInjectionRetHardeningPass::runOnMachineFunction(
if (!F.hasOptNone() && skipFunction(F))
return false;
+ LLVM_DEBUG(dbgs() << "***** " << getPassName() << " : " << MF.getName()
+ << " *****\n");
++NumFunctionsConsidered;
const X86RegisterInfo *TRI = Subtarget->getRegisterInfo();
const X86InstrInfo *TII = Subtarget->getInstrInfo();
More information about the llvm-commits
mailing list