[X86 fast-isel] Constrain the index reg class to not include SP.
authorPete Cooper <peter_cooper@apple.com>
Tue, 5 May 2015 23:41:53 +0000 (23:41 +0000)
committerPete Cooper <peter_cooper@apple.com>
Tue, 5 May 2015 23:41:53 +0000 (23:41 +0000)
commit9fb69672d6988286a16a0b5e712ed14084db7f25
treef6831db6dff7d649ddbd849d0bc8a91297ae42d7
parent000e7d10e877f9c62730c4210cb5df3a18c9b905
[X86 fast-isel] Constrain the index reg class to not include SP.

The index reg on instructions with complex address modes is a GPR64_NOSP.  Constrain it to appease the machine verifier.

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