@@ -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;
0 commit comments