mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +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
@ -262,16 +262,15 @@ int UltraSparcRegInfo::getRegType(const Value *Val) const {
|
||||
|
||||
switch (getRegClassIDOfValue(Val)) {
|
||||
case IntRegClassID: return IntRegType;
|
||||
case FloatRegClassID:
|
||||
Typ = Val->getType()->getPrimitiveID();
|
||||
if (Typ == Type::FloatTyID)
|
||||
case FloatRegClassID:
|
||||
if (Val->getType() == Type::FloatTy)
|
||||
return FPSingleRegType;
|
||||
else if (Typ == Type::DoubleTyID)
|
||||
else if (Val->getType() == Type::DoubleTy)
|
||||
return FPDoubleRegType;
|
||||
assert(0 && "Unknown type in FloatRegClass");
|
||||
|
||||
case IntCCRegClassID: return IntCCRegType;
|
||||
case FloatCCRegClassID: return FloatCCRegType ;
|
||||
case IntCCRegClassID: return IntCCRegType;
|
||||
case FloatCCRegClassID: return FloatCCRegType;
|
||||
default: assert(0 && "Unknown reg class ID");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user