[PATCH] [x32] Use ebp/esp as frame and stack pointer

Pavel Chupin pavel.v.chupin at gmail.com
Tue Jul 22 06:20:42 PDT 2014


Hi nadav, dschuff,

Since pointers are 32-bit on x32 we can use ebp and esp as frame and stack
pointer. Some operations like PUSH/POP and CFI_INSTRUCTION still
require 64-bit register, so using 64-bit MachineFramePtr where required.

http://reviews.llvm.org/D4617

Files:
  lib/Target/X86/X86FrameLowering.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86RegisterInfo.cpp
  test/CodeGen/X86/alloca-align-rounding.ll
  test/CodeGen/X86/frameaddr.ll
  test/CodeGen/X86/x86-64-stack-and-frame-ptr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4617.11750.patch
Type: text/x-patch
Size: 10353 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140722/b6d8446f/attachment.bin>


More information about the llvm-commits mailing list