mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
Remove redundand checks: the only way to have, e.g. f32 RegVT is exactly
hardfloat case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78237 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
be0cf7dbc2
commit
058c251d4a
@ -1461,21 +1461,17 @@ ARMTargetLowering::LowerFormalArguments(SDValue Chain,
|
||||
} else {
|
||||
TargetRegisterClass *RC;
|
||||
|
||||
if (FloatABIType == FloatABI::Hard && RegVT == MVT::f32)
|
||||
if (RegVT == MVT::f32)
|
||||
RC = ARM::SPRRegisterClass;
|
||||
else if (FloatABIType == FloatABI::Hard && RegVT == MVT::f64)
|
||||
else if (RegVT == MVT::f64)
|
||||
RC = ARM::DPRRegisterClass;
|
||||
else if (FloatABIType == FloatABI::Hard && RegVT == MVT::v2f64)
|
||||
else if (RegVT == MVT::v2f64)
|
||||
RC = ARM::QPRRegisterClass;
|
||||
else if (AFI->isThumb1OnlyFunction())
|
||||
RC = ARM::tGPRRegisterClass;
|
||||
else if (RegVT == MVT::i32)
|
||||
RC = (AFI->isThumb1OnlyFunction() ?
|
||||
ARM::tGPRRegisterClass : ARM::GPRRegisterClass);
|
||||
else
|
||||
RC = ARM::GPRRegisterClass;
|
||||
|
||||
assert((RegVT == MVT::i32 || RegVT == MVT::f32 ||
|
||||
(FloatABIType == FloatABI::Hard &&
|
||||
((RegVT == MVT::f64) || (RegVT == MVT::v2f64)))) &&
|
||||
"RegVT not supported by FORMAL_ARGUMENTS Lowering");
|
||||
llvm_unreachable("RegVT not supported by FORMAL_ARGUMENTS Lowering");
|
||||
|
||||
// Transform the arguments in physical registers into virtual ones.
|
||||
unsigned Reg = MF.addLiveIn(VA.getLocReg(), RC);
|
||||
|
Loading…
x
Reference in New Issue
Block a user