mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Simplify code a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2322 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f270c1ba27
commit
87e873bd3d
@ -263,15 +263,14 @@ int UltraSparcRegInfo::getRegType(const Value *Val) const {
|
|||||||
switch (getRegClassIDOfValue(Val)) {
|
switch (getRegClassIDOfValue(Val)) {
|
||||||
case IntRegClassID: return IntRegType;
|
case IntRegClassID: return IntRegType;
|
||||||
case FloatRegClassID:
|
case FloatRegClassID:
|
||||||
Typ = Val->getType()->getPrimitiveID();
|
if (Val->getType() == Type::FloatTy)
|
||||||
if (Typ == Type::FloatTyID)
|
|
||||||
return FPSingleRegType;
|
return FPSingleRegType;
|
||||||
else if (Typ == Type::DoubleTyID)
|
else if (Val->getType() == Type::DoubleTy)
|
||||||
return FPDoubleRegType;
|
return FPDoubleRegType;
|
||||||
assert(0 && "Unknown type in FloatRegClass");
|
assert(0 && "Unknown type in FloatRegClass");
|
||||||
|
|
||||||
case IntCCRegClassID: return IntCCRegType;
|
case IntCCRegClassID: return IntCCRegType;
|
||||||
case FloatCCRegClassID: return FloatCCRegType ;
|
case FloatCCRegClassID: return FloatCCRegType;
|
||||||
default: assert(0 && "Unknown reg class ID");
|
default: assert(0 && "Unknown reg class ID");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user