[llvm-commits] [llvm] r39967 - in /llvm/trunk: lib/Target/X86/X86MachineFunctionInfo.h lib/Target/X86/X86RegisterInfo.cpp lib/Target/X86/X86RegisterInfo.h test/CodeGen/X86/2006-05-02-InstrSched2.ll test/CodeGen/X86/2006-05-11-InstrSched.ll test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll test/CodeGen/X86/2007-05-07-InvokeSRet.ll

Dan Gohman djg at cray.com
Tue Jul 17 07:59:12 PDT 2007


> Use push / pop for prologues and epilogues.

Cool! 

> +  if (NumBytes) {    // adjust stack pointer back: ESP += numbytes

It looks like this doesn't reset ESP/RSP in the case where a function calls
alloca but has no static-sized allocation, i.e. when NumBytes is zero
and MFI->hasVarSizedObjects() is true.

Dan

-- 
Dan Gohman, Cray Inc.



More information about the llvm-commits mailing list