mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-07 04:21:39 +00:00
Properly handle GR32_NOSP in X86RegisterInfo::getMatchingSuperRegClass.
This function looks like it is about ready to be generated by TebleGen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115876 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf4699c561
commit
8f42a19fb0
@ -270,9 +270,14 @@ X86RegisterInfo::getMatchingSuperRegClass(const TargetRegisterClass *A,
|
||||
}
|
||||
break;
|
||||
case X86::sub_32bit:
|
||||
if (B == &X86::GR32RegClass || B == &X86::GR32_NOSPRegClass) {
|
||||
if (B == &X86::GR32RegClass) {
|
||||
if (A->getSize() == 8)
|
||||
return A;
|
||||
} else if (B == &X86::GR32_NOSPRegClass) {
|
||||
if (A == &X86::GR64RegClass || &X86::GR64_NOSPRegClass)
|
||||
return &X86::GR64_NOSPRegClass;
|
||||
if (A->getSize() == 8)
|
||||
return getCommonSubClass(A, &X86::GR64_NOSPRegClass);
|
||||
} else if (B == &X86::GR32_ABCDRegClass) {
|
||||
if (A == &X86::GR64RegClass || A == &X86::GR64_ABCDRegClass ||
|
||||
A == &X86::GR64_NOREXRegClass ||
|
||||
|
Loading…
Reference in New Issue
Block a user