Lines Matching defs:OldCost
262 InstructionCost OldCost =
265 OldCost +=
290 if (OldCost < NewCost || !NewCost.isValid())
344 InstructionCost OldCost =
353 if (OldCost < NewCost || !NewCost.isValid())
470 InstructionCost OldCost, NewCost;
478 OldCost = CheapExtractCost + ScalarOpCost;
483 OldCost = Extract0Cost + Extract1Cost + ScalarOpCost;
518 return OldCost < NewCost;
696 InstructionCost OldCost =
704 OldCost += TTI.getVectorInstrCost(*Extract, VecTy, CostKind, Index);
722 if (NewCost > OldCost)
813 InstructionCost OldCost =
819 LLVM_DEBUG(dbgs() << "Found a bitcasted shuffle: " << I << "\n OldCost: "
820 << OldCost << " vs NewCost: " << NewCost << "\n");
822 if (NewCost > OldCost || !NewCost.isValid())
890 InstructionCost OldCost = 2 * SplatCost + VectorOpCost;
919 LLVM_DEBUG(dbgs() << "Cost of Intrinsic: " << OldCost
923 if (OldCost < NewCost || !NewCost.isValid())
1040 InstructionCost OldCost =
1047 if (OldCost < NewCost || !NewCost.isValid())
1141 InstructionCost OldCost =
1166 if (OldCost < NewCost || !NewCost.isValid())
1536 InstructionCost OldCost = 0;
1537 OldCost += TTI.getArithmeticInstrCost(Instruction::Or, Ty, CostKind);
1538 OldCost +=
1540 OldCost += 2 * TTI.getCastInstrCost(Instruction::ZExt, Ty, MaskIntTy,
1542 OldCost += 2 * TTI.getCastInstrCost(Instruction::BitCast, MaskIntTy, MaskTy,
1557 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
1560 if (NewCost > OldCost)
1650 InstructionCost OldCost =
1655 OldCost += TTI.getShuffleCost(TargetTransformInfo::SK_PermuteTwoSrc, Op0Ty,
1659 OldCost += TTI.getShuffleCost(TargetTransformInfo::SK_PermuteTwoSrc, Op1Ty,
1674 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
1678 if (NewCost > OldCost)
1762 InstructionCost OldCost =
1786 OldCost += TTI.getInstructionCost(cast<Instruction>(Op), CostKind);
1813 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
1820 if (ReducedInstCount ? (NewCost > OldCost) : (NewCost >= OldCost))
1910 InstructionCost OldCost = CostC0 + CostC1;
1911 OldCost +=
1925 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
1927 if (NewCost > OldCost)
2049 InstructionCost OldCost = InnerCost0 + InnerCost1 + OuterCost;
2063 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
2065 if (NewCost > OldCost)
2104 InstructionCost OldCost =
2126 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
2129 if (NewCost > OldCost)
2578 InstructionCost OldCost = TTI.getShuffleCost(
2587 LLVM_DEBUG(dbgs() << " OldCost: " << OldCost << " vs NewCost: " << NewCost
2589 if (NewCost < OldCost) {
2641 InstructionCost OldCost = TTI.getArithmeticReductionCost(
2643 OldCost += TTI.getCastInstrCost(CastOpc, ReductionSrcTy, SrcTy,
2652 if (OldCost <= NewCost || !NewCost.isValid())
3118 InstructionCost OldCost = ExtCost + InsCost;
3130 << "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
3133 if (OldCost < NewCost)