[llvm] [X86] Add start/end debug messages for the X86CompressEVEXPass and X86PadShortFunctionPass (PR #144056)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 13 04:05:12 PDT 2025
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/144056
None
>From 93a52cb031dfadead032dc98b6cba32993f59431 Mon Sep 17 00:00:00 2001
From: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: Fri, 13 Jun 2025 12:04:22 +0100
Subject: [PATCH] [X86] Add start/end debug messages for the
X86CompressEVEXPass and X86PadShortFunc
---
llvm/lib/Target/X86/X86CompressEVEX.cpp | 3 ++-
llvm/lib/Target/X86/X86PadShortFunction.cpp | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Target/X86/X86CompressEVEX.cpp b/llvm/lib/Target/X86/X86CompressEVEX.cpp
index fe593aa307df5..4ea30de78402f 100644
--- a/llvm/lib/Target/X86/X86CompressEVEX.cpp
+++ b/llvm/lib/Target/X86/X86CompressEVEX.cpp
@@ -300,6 +300,7 @@ static bool CompressEVEXImpl(MachineInstr &MI, const X86Subtarget &ST) {
}
bool CompressEVEXPass::runOnMachineFunction(MachineFunction &MF) {
+ LLVM_DEBUG(dbgs() << "Start X86CompressEVEXPass\n";);
#ifndef NDEBUG
// Make sure the tables are sorted.
static std::atomic<bool> TableChecked(false);
@@ -320,7 +321,7 @@ bool CompressEVEXPass::runOnMachineFunction(MachineFunction &MF) {
for (MachineInstr &MI : MBB)
Changed |= CompressEVEXImpl(MI, ST);
}
-
+ LLVM_DEBUG(dbgs() << "End X86CompressEVEXPass\n";);
return Changed;
}
diff --git a/llvm/lib/Target/X86/X86PadShortFunction.cpp b/llvm/lib/Target/X86/X86PadShortFunction.cpp
index 170ca2a932502..049384eefa188 100644
--- a/llvm/lib/Target/X86/X86PadShortFunction.cpp
+++ b/llvm/lib/Target/X86/X86PadShortFunction.cpp
@@ -100,6 +100,7 @@ FunctionPass *llvm::createX86PadShortFunctions() {
/// runOnMachineFunction - Loop over all of the basic blocks, inserting
/// NOOP instructions before early exits.
bool PadShortFunc::runOnMachineFunction(MachineFunction &MF) {
+ LLVM_DEBUG(dbgs() << "Start X86PadShortFunctionPass\n";);
if (skipFunction(MF.getFunction()))
return false;
@@ -149,7 +150,7 @@ bool PadShortFunc::runOnMachineFunction(MachineFunction &MF) {
MadeChange = true;
}
}
-
+ LLVM_DEBUG(dbgs() << "End X86PadShortFunctionPass\n";);
return MadeChange;
}
More information about the llvm-commits
mailing list