Add a GR32_NOREX_NOSP register class and fix a bug where getMatchingSuperRegClass()
authorCameron Zwarich <zwarich@apple.com>
Fri, 27 May 2011 22:26:04 +0000 (22:26 +0000)
committerCameron Zwarich <zwarich@apple.com>
Fri, 27 May 2011 22:26:04 +0000 (22:26 +0000)
commitf5e771db37bb4c63f81f902a1d21269c4bd45236
tree74f5942dbd18e660795e59d5df5a8697d4521f1c
parent37afca128db40b086752f3f62464ba08128c3b4d
Add a GR32_NOREX_NOSP register class and fix a bug where getMatchingSuperRegClass()
was saying that the matching superregister class of GR32_NOREX in GR64_NOREX_NOSP
is GR64_NOREX, which drops the NOSP constraint. This fixes PR10032.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132225 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86RegisterInfo.cpp
lib/Target/X86/X86RegisterInfo.td
test/CodeGen/X86/2011-05-27-CrossClassCoalescing.ll [new file with mode: 0644]