llvm.org GIT mirror llvm / 9182254
Remove a variable that was only used in asserts and had a duplicate copy in something we did use anyhow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307457 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 2 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
971971 X86FI->setCalleeSavedFrameSize(
972972 X86FI->getCalleeSavedFrameSize() - TailCallReturnAddrDelta);
973973
974 bool UseRedZone = false;
975974 bool UseStackProbe = !STI.getTargetLowering()->getStackProbeSymbolName(MF).empty();
976975
977976 // The default stack probe size is 4096 if the function has no stackprobesize
10101009 X86FI->setUsesRedZone(MinSize > 0 || StackSize > 0);
10111010 StackSize = std::max(MinSize, StackSize > 128 ? StackSize - 128 : 0);
10121011 MFI.setStackSize(StackSize);
1013 UseRedZone = true;
10141012 }
10151013
10161014 // Insert stack pointer adjustment for later moving of return addr. Only
11881186 if (IsWin64Prologue && !IsFunclet && TRI->needsStackRealignment(MF))
11891187 AlignedNumBytes = alignTo(AlignedNumBytes, MaxAlign);
11901188 if (AlignedNumBytes >= StackProbeSize && UseStackProbe) {
1191 assert(!UseRedZone && "The Red Zone is not accounted for in stack probes");
1189 assert(!X86FI->getUsesRedZone() &&
1190 "The Red Zone is not accounted for in stack probes");
11921191
11931192 // Check whether EAX is livein for this block.
11941193 bool isEAXAlive = isEAXLiveIn(MBB);