[x86 frame lowering] In 32-bit mode, use ESI as the base pointer.
authorChad Rosier <mcrosier@apple.com>
Tue, 31 Jul 2012 18:29:21 +0000 (18:29 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 31 Jul 2012 18:29:21 +0000 (18:29 +0000)
commitd97f3a5ab084485fe4931b6e7d8fa40ae4caa3c1
treee9ae413e4e8c9db42d4b7487eefb3dfa87a9428a
parent521ed460e9a2c4821987cdfd62f68720d2c40ccd
[x86 frame lowering] In 32-bit mode, use ESI as the base pointer.

Previously, we were using EBX, but PIC requires the GOT to be in EBX before
function calls via PLT GOT pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161066 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86RegisterInfo.cpp
test/CodeGen/X86/force-align-stack-alloca.ll