[X86] Preserve BasePtr for LEA64_32r
authorMichael Kuperstein <mkuper@google.com>
Thu, 6 Oct 2016 19:31:27 +0000 (19:31 +0000)
committerMichael Kuperstein <mkuper@google.com>
Thu, 6 Oct 2016 19:31:27 +0000 (19:31 +0000)
commite524e228463c337aff8bd9b0b9099aa4fc23f31d
tree39bfc9d9a694d8943aee3bd52a1dd4668903c244
parentbddb4128965cb8b8f5f53abe75d41fd8d07fe163
[X86] Preserve BasePtr for LEA64_32r

When replacing FrameIndex with BasePtr, we must preserve BasePtr for
LEA64_32r since BasePtr is used later for stack adjustment if it is
the same as StackPtr.

Patch by H.J Lu <hjl.tools@gmail.com>

Differential Revision: https://reviews.llvm.org/D23575

llvm-svn: 283486
llvm/lib/Target/X86/X86RegisterInfo.cpp
llvm/test/CodeGen/X86/x32-movtopush64.ll [new file with mode: 0644]