diff --git a/llvm/lib/Target/SBF/SBFRegisterInfo.cpp b/llvm/lib/Target/SBF/SBFRegisterInfo.cpp index d86edf70a3dc7c..918aab88c9612c 100644 --- a/llvm/lib/Target/SBF/SBFRegisterInfo.cpp +++ b/llvm/lib/Target/SBF/SBFRegisterInfo.cpp @@ -60,10 +60,12 @@ static void WarnSize(int Offset, MachineFunction &MF, DebugLoc& DL) dbgs() << " "; DL.print(dbgs()); } + uint64_t StackSize = MF.getFrameInfo().getStackSize(); dbgs() << " Function " << MF.getFunction().getName() << " Stack offset of " << -Offset << " exceeded max offset of " << -MaxOffset << " by " << MaxOffset - Offset - << " bytes, please minimize large stack variables\n"; + << " bytes, please minimize large stack variables. " + << "Estimated function frame size: " << StackSize << " bytes.\n\n"; } else { DiagnosticInfoUnsupported DiagStackSize( MF.getFunction(),