Skip to content

[X86] Add start/end debug messages for the X86CompressEVEXPass and X86PadShortFunctionPass #144056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion llvm/lib/Target/X86/X86CompressEVEX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}

Expand Down
3 changes: 2 additions & 1 deletion llvm/lib/Target/X86/X86PadShortFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -149,7 +150,7 @@ bool PadShortFunc::runOnMachineFunction(MachineFunction &MF) {
MadeChange = true;
}
}

LLVM_DEBUG(dbgs() << "End X86PadShortFunctionPass\n";);
return MadeChange;
}

Expand Down
Loading