Skip to content

Commit ca5f2b3

Browse files
RKSimontomtor
authored andcommitted
[X86] Add start/end debug messages for the X86CompressEVEXPass and X86PadShortFunctionPass (llvm#144056)
1 parent 39b6340 commit ca5f2b3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

llvm/lib/Target/X86/X86CompressEVEX.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ static bool CompressEVEXImpl(MachineInstr &MI, const X86Subtarget &ST) {
300300
}
301301

302302
bool CompressEVEXPass::runOnMachineFunction(MachineFunction &MF) {
303+
LLVM_DEBUG(dbgs() << "Start X86CompressEVEXPass\n";);
303304
#ifndef NDEBUG
304305
// Make sure the tables are sorted.
305306
static std::atomic<bool> TableChecked(false);
@@ -320,7 +321,7 @@ bool CompressEVEXPass::runOnMachineFunction(MachineFunction &MF) {
320321
for (MachineInstr &MI : MBB)
321322
Changed |= CompressEVEXImpl(MI, ST);
322323
}
323-
324+
LLVM_DEBUG(dbgs() << "End X86CompressEVEXPass\n";);
324325
return Changed;
325326
}
326327

llvm/lib/Target/X86/X86PadShortFunction.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ FunctionPass *llvm::createX86PadShortFunctions() {
100100
/// runOnMachineFunction - Loop over all of the basic blocks, inserting
101101
/// NOOP instructions before early exits.
102102
bool PadShortFunc::runOnMachineFunction(MachineFunction &MF) {
103+
LLVM_DEBUG(dbgs() << "Start X86PadShortFunctionPass\n";);
103104
if (skipFunction(MF.getFunction()))
104105
return false;
105106

@@ -149,7 +150,7 @@ bool PadShortFunc::runOnMachineFunction(MachineFunction &MF) {
149150
MadeChange = true;
150151
}
151152
}
152-
153+
LLVM_DEBUG(dbgs() << "End X86PadShortFunctionPass\n";);
153154
return MadeChange;
154155
}
155156

0 commit comments

Comments
 (0)