[AArch64] Rename Cost -> PromotedCost to avoid shadowing error

This commit is contained in:
David Green 2025-08-08 14:37:24 +01:00
parent a1672d7c6a
commit 26b302fd8b

View File

@ -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.