[AArch64] Rename Cost -> PromotedCost to avoid shadowing error
This commit is contained in:
parent
a1672d7c6a
commit
26b302fd8b
@ -4414,7 +4414,7 @@ InstructionCost AArch64TTIImpl::getCmpSelInstrCost(
|
||||
}
|
||||
|
||||
if (Opcode == Instruction::FCmp) {
|
||||
if (auto Cost = getFP16BF16PromoteCost(
|
||||
if (auto PromotedCost = getFP16BF16PromoteCost(
|
||||
ValTy, CostKind, Op1Info, Op2Info, /*IncludeTrunc=*/false,
|
||||
[&](Type *PromotedTy) {
|
||||
InstructionCost Cost =
|
||||
@ -4428,7 +4428,7 @@ InstructionCost AArch64TTIImpl::getCmpSelInstrCost(
|
||||
TTI::CastContextHint::None, CostKind);
|
||||
return Cost;
|
||||
}))
|
||||
return *Cost;
|
||||
return *PromotedCost;
|
||||
|
||||
auto LT = getTypeLegalizationCost(ValTy);
|
||||
// Model unknown fp compares as a libcall.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user