Lines Matching defs:NewCost

270   InstructionCost NewCost =
285 NewCost +=
290 if (OldCost < NewCost || !NewCost.isValid())
348 InstructionCost NewCost =
353 if (OldCost < NewCost || !NewCost.isValid())
470 InstructionCost OldCost, NewCost;
479 NewCost = VectorOpCost + CheapExtractCost + HasUseTax * CheapExtractCost;
484 NewCost = VectorOpCost + CheapExtractCost +
505 NewCost += TTI.getShuffleCost(TargetTransformInfo::SK_PermuteSingleSrc,
509 NewCost +=
518 return OldCost < NewCost;
706 InstructionCost NewCost =
718 NewCost += TTI.getShuffleCost(TargetTransformInfo::SK_PermuteSingleSrc,
722 if (NewCost > OldCost)
808 InstructionCost NewCost =
820 << OldCost << " vs NewCost: " << NewCost << "\n");
822 if (NewCost > OldCost || !NewCost.isValid())
915 InstructionCost NewCost = ScalarOpCost + SplatCost + CostToKeepSplats;
920 << ", Cost of scalarizing:" << NewCost << "\n");
923 if (OldCost < NewCost || !NewCost.isValid())
1042 InstructionCost NewCost = ScalarOpCost + InsertCost +
1047 if (OldCost < NewCost || !NewCost.isValid())
1151 InstructionCost NewCost = TTI.getCmpSelInstrCost(
1156 NewCost += TTI.getShuffleCost(TargetTransformInfo::SK_PermuteSingleSrc, CmpTy,
1158 NewCost += TTI.getArithmeticInstrCost(I.getOpcode(), CmpTy, CostKind);
1159 NewCost += TTI.getVectorInstrCost(*Ext0, CmpTy, CostKind, CheapIndex);
1160 NewCost += Ext0->hasOneUse() ? 0 : Ext0Cost;
1161 NewCost += Ext1->hasOneUse() ? 0 : Ext1Cost;
1166 if (OldCost < NewCost || !NewCost.isValid())
1545 InstructionCost NewCost = 0;
1546 NewCost += TTI.getShuffleCost(TargetTransformInfo::SK_PermuteTwoSrc, MaskTy,
1548 NewCost += TTI.getCastInstrCost(Instruction::BitCast, ConcatIntTy, ConcatTy,
1551 NewCost += TTI.getCastInstrCost(Instruction::ZExt, Ty, ConcatIntTy,
1554 NewCost += TTI.getArithmeticInstrCost(Instruction::Shl, Ty, CostKind);
1557 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
1560 if (NewCost > OldCost)
1663 InstructionCost NewCost =
1667 NewCost += TTI.getShuffleCost(TargetTransformInfo::SK_PermuteTwoSrc, Op0Ty,
1670 NewCost += TTI.getShuffleCost(TargetTransformInfo::SK_PermuteTwoSrc, Op1Ty,
1674 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
1678 if (NewCost > OldCost)
1798 InstructionCost NewCost =
1803 NewCost +=
1808 NewCost += TTI.getCmpSelInstrCost(LHS->getOpcode(), ShuffleCmpTy,
1813 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
1820 if (ReducedInstCount ? (NewCost > OldCost) : (NewCost >= OldCost))
1915 InstructionCost NewCost = TTI.getShuffleCost(
1917 NewCost += TTI.getCastInstrCost(Opcode, ShuffleDstTy, NewShuffleDstTy,
1920 NewCost += CostC0;
1922 NewCost += CostC1;
1925 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
1927 if (NewCost > OldCost)
2055 InstructionCost NewCost = TTI.getShuffleCost(
2058 NewCost += InnerCost0;
2060 NewCost += InnerCost1;
2063 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
2065 if (NewCost > OldCost)
2111 InstructionCost NewCost = 0;
2119 NewCost += TTI.getShuffleCost(TargetTransformInfo::SK_PermuteTwoSrc,
2123 NewCost += TTI.getIntrinsicInstrCost(NewAttr, CostKind);
2126 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
2129 if (NewCost > OldCost)
2581 InstructionCost NewCost = TTI.getShuffleCost(
2587 LLVM_DEBUG(dbgs() << " OldCost: " << OldCost << " vs NewCost: " << NewCost
2589 if (NewCost < OldCost) {
2646 InstructionCost NewCost =
2652 if (OldCost <= NewCost || !NewCost.isValid())
3122 InstructionCost NewCost = 0;
3124 NewCost += TTI.getShuffleCost(SK, VecTy, Mask, CostKind, 0, nullptr,
3127 NewCost += ExtCost;
3130 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
3133 if (OldCost < NewCost)