[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Apr 21 12:55:05 PDT 2004
Changes in directory llvm/lib/Target/SparcV9:
SparcV9RegInfo.cpp updated: 1.124 -> 1.125
---
Log message:
Make SparcV9RegInfo::getRegType() return the right answer for registers
of IntCC, FloatCC, and Special types.
Make SparcV9RegInfo::getRegClassIDOfRegType() return the right answer
if you ask for the class corresponding to SpecialRegType.
---
Diffs of the changes: (+6 -5)
Index: llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp:1.124 llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp:1.125
--- llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp:1.124 Tue Apr 20 15:12:57 2004
+++ llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp Wed Apr 21 12:53:58 2004
@@ -256,11 +256,11 @@
return FPSingleRegType;
else if (unifiedRegNum < (64 + 32))
return FPDoubleRegType;
- else if (unifiedRegNum < (64+32+4))
- return FloatCCRegType;
- else if (unifiedRegNum < (64+32+4+2))
- return IntCCRegType;
- else if (unifiedRegNum < (64+32+4+2+1))
+ else if (unifiedRegNum < (64+32+3))
+ return IntCCRegType;
+ else if (unifiedRegNum < (64+32+3+4))
+ return FloatCCRegType;
+ else if (unifiedRegNum < (64+32+3+4+1))
return SpecialRegType;
else
assert(0 && "Invalid unified register number in getRegType");
@@ -300,6 +300,7 @@
case FPDoubleRegType: return FloatRegClassID;
case IntCCRegType: return IntCCRegClassID;
case FloatCCRegType: return FloatCCRegClassID;
+ case SpecialRegType: return SpecialRegClassID;
default:
assert(0 && "Invalid register type in getRegClassIDOfRegType");
return 0;
More information about the llvm-commits
mailing list