Skip to content

Commit 26b302f

Browse files
committed
[AArch64] Rename Cost -> PromotedCost to avoid shadowing error
1 parent a1672d7 commit 26b302f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4414,7 +4414,7 @@ InstructionCost AArch64TTIImpl::getCmpSelInstrCost(
44144414
}
44154415

44164416
if (Opcode == Instruction::FCmp) {
4417-
if (auto Cost = getFP16BF16PromoteCost(
4417+
if (auto PromotedCost = getFP16BF16PromoteCost(
44184418
ValTy, CostKind, Op1Info, Op2Info, /*IncludeTrunc=*/false,
44194419
[&](Type *PromotedTy) {
44204420
InstructionCost Cost =
@@ -4428,7 +4428,7 @@ InstructionCost AArch64TTIImpl::getCmpSelInstrCost(
44284428
TTI::CastContextHint::None, CostKind);
44294429
return Cost;
44304430
}))
4431-
return *Cost;
4431+
return *PromotedCost;
44324432

44334433
auto LT = getTypeLegalizationCost(ValTy);
44344434
// Model unknown fp compares as a libcall.

0 commit comments

Comments
 (0)