Constrain the offset register to a *_NOSP register class when inserting LEA
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 7 Oct 2010 00:07:26 +0000 (00:07 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 7 Oct 2010 00:07:26 +0000 (00:07 +0000)
commit635127a8c615820b88ba181b92f5ce93a3ab9eab
tree1bad474af319034990c0a254e880241ede7981a8
parent78266110bf5e2b1b7406c81940d8c0b08a6b2e3f
Constrain the offset register to a *_NOSP register class when inserting LEA
instructions.

This unbreaks the machine code verifier and fixes PR8317.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115879 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp