mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Eliminate a couple of fields from TargetRegisterClass: SubRegClasses and SuperRegClasses. These are not necessary. Also eliminate getSubRegisterRegClass and getSuperRegisterRegClass. These are slow and their results can change if register file names change. Just use TargetLowering::getRegClassFor() to get the right TargetRegisterClass instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -440,7 +440,8 @@ void FastISelMap::PrintFunctionDefinitions(std::ostream &OS) {
|
||||
Operands.PrintArguments(OS, *Memo.PhysRegs);
|
||||
OS << ");\n";
|
||||
} else {
|
||||
OS << "extractsubreg(Op0, ";
|
||||
OS << "extractsubreg(" << getName(RetVT);
|
||||
OS << ", Op0, ";
|
||||
OS << (unsigned)Memo.SubRegNo;
|
||||
OS << ");\n";
|
||||
}
|
||||
@@ -534,7 +535,7 @@ void FastISelMap::PrintFunctionDefinitions(std::ostream &OS) {
|
||||
Operands.PrintArguments(OS, *Memo.PhysRegs);
|
||||
OS << ");\n";
|
||||
} else {
|
||||
OS << "extractsubreg(Op0, ";
|
||||
OS << "extractsubreg(RetVT, Op0, ";
|
||||
OS << (unsigned)Memo.SubRegNo;
|
||||
OS << ");\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user