Skip to content

Commit eb5b6e0

Browse files
committed
Remove debug prints to console.
1 parent 646aace commit eb5b6e0

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

llvm/lib/Target/X86/X86FrameLowering.cpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,12 +1554,7 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF,
15541554
bool HasFP = hasFP(MF);
15551555
bool IsWin64Prologue = isWin64Prologue(MF);
15561556

1557-
// if(IsWin64Prologue) {
1558-
// errs() << "********** IsWin64Prologue TRUE ";
1559-
// } else {
1560-
// errs() << "********** IsWin64Prologue FALSE FALSE FALSE ";
1561-
// }
1562-
bool NeedsWin64CFI = IsWin64Prologue && Fn.needsUnwindTableEntry();
1557+
bool NeedsWin64CFI = IsWin64Prologue && Fn.needsUnwindTableEntry();
15631558
// FIXME: Emit FPO data for EH funclets.
15641559
bool NeedsWinFPO = !IsFunclet && STI.isTargetWin32() &&
15651560
MF.getFunction().getParent()->getCodeViewFlag();
@@ -1682,12 +1677,6 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF,
16821677
// pointer, calls, or dynamic alloca then we do not need to adjust the
16831678
// stack pointer (we fit in the Red Zone). We also check that we don't
16841679
// push and pop from the stack.
1685-
1686-
// if (has128ByteRedZone(MF)) {
1687-
// errs() << "********** has128ByteRedZone TRUE ";
1688-
// } else {
1689-
// errs() << "********** has128ByteRedZone FALSE FALSE FALSE ";
1690-
// }
16911680
if (has128ByteRedZone(MF) && !TRI->hasStackRealignment(MF) &&
16921681
!MFI.hasVarSizedObjects() && // No dynamic alloca.
16931682
!MFI.adjustsStack() && // No calls.
@@ -1696,7 +1685,6 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF,
16961685
!MF.shouldSplitStack()) { // Regular stack
16971686
uint64_t MinSize =
16981687
X86FI->getCalleeSavedFrameSize() - X86FI->getTCReturnAddrDelta();
1699-
17001688
if (HasFP)
17011689
MinSize += SlotSize;
17021690
X86FI->setUsesRedZone(MinSize > 0 || StackSize > 0);
@@ -1912,9 +1900,7 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF,
19121900
Opc == X86::PUSH2 || Opc == X86::PUSH2P;
19131901
};
19141902

1915-
// uint64_t cont3 = 1;
19161903
while (IsCSPush(MBBI)) {
1917-
// llvm::outs() << "\n*********** cont3 " << cont3++;
19181904
PushedRegs = true;
19191905
Register Reg = MBBI->getOperand(0).getReg();
19201906
LastCSPush = MBBI;

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37230,8 +37230,6 @@ X86TargetLowering::EmitSjLjDispatchBlock(MachineInstr &MI,
3723037230
// N.B. the order the invoke BBs are processed in doesn't matter here.
3723137231
SmallVector<MachineBasicBlock *, 64> MBBLPads;
3723237232
const MCPhysReg *SavedRegs = MF->getRegInfo().getCalleeSavedRegs();
37233-
// llvm::outs() << "Callee saved regs from isellowering " <<
37234-
// SavedRegs->
3723537233
for (MachineBasicBlock *MBB : InvokeBBs) {
3723637234
// Remove the landing pad successor from the invoke block and replace it
3723737235
// with the new dispatch block.

llvm/lib/Target/X86/X86Subtarget.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,6 @@ class X86Subtarget final : public X86GenSubtargetInfo {
339339
bool isPositionIndependent() const;
340340

341341
bool isCallingConvWin64(CallingConv::ID CC) const {
342-
// llvm::outs() << "\nIn isCallingConvWin64 check calling
343-
// convention******************* ";
344342
switch (CC) {
345343
// On Win64 and UEFI64, all these conventions just use the default
346344
// convention.
@@ -357,8 +355,6 @@ class X86Subtarget final : public X86GenSubtargetInfo {
357355
return isTargetWin64() || isTargetUEFI64();
358356
// This convention allows using the Win64 convention on other targets.
359357
case CallingConv::Win64:
360-
// llvm::outs() << "\nReturning true for Win64 calling
361-
// convention******************* ";
362358
return true;
363359
// This convention allows using the SysV convention on Windows targets.
364360
case CallingConv::X86_64_SysV:

0 commit comments

Comments
 (0)