mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +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,10 +263,9 @@ int UltraSparcRegInfo::getRegType(const Value *Val) const {
|
||||
switch (getRegClassIDOfValue(Val)) {
|
||||
case IntRegClassID: return IntRegType;
|
||||
case FloatRegClassID:
|
||||
Typ = Val->getType()->getPrimitiveID();
|
||||
if (Typ == Type::FloatTyID)
|
||||
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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user