[x86 fast-isel] Materialize allocas with the correct-sized lea for ILP32
authorDerek Schuff <dschuff@google.com>
Wed, 5 Nov 2014 19:27:21 +0000 (19:27 +0000)
committerDerek Schuff <dschuff@google.com>
Wed, 5 Nov 2014 19:27:21 +0000 (19:27 +0000)
commit07ffcb10074a9b62e3c65c544f6df9252a333f0d
tree0c978e441bd8cdd12719725a55f0e2876c58064f
parente7a8e298fb1edb61bb740f030811aba3166cdd39
[x86 fast-isel] Materialize allocas with the correct-sized lea for ILP32

Summary:
X86FastISel::fastMaterializeAlloca was incorrectly conditioning its
opcode selection on subtarget bitness rather than pointer size.

Differential Revision: http://reviews.llvm.org/D6136

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221386 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/fast-isel-x32.ll [new file with mode: 0644]
test/CodeGen/X86/fast-isel-x86-64.ll