[x86] Fix register class of folded load index reg.
authorPete Cooper <peter_cooper@apple.com>
Wed, 6 May 2015 21:37:19 +0000 (21:37 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 6 May 2015 21:37:19 +0000 (21:37 +0000)
commit0040d179d275b304591817b6d2058d96460d7ed9
treeac52fed20c7f11b2ab438a7b20464939b0da336c
parentd71e55b97fe93f6186a5be79e788634fe9c27e55
[x86] Fix register class of folded load index reg.

When folding a load in to another instruction, we need to fix the class of the index register
Otherwise, it could be something like GR64 not GR64_NOSP and would fail the machine verifier.

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