Home
last modified time | relevance | path

Searched refs:ArithCost (Results 1 – 2 of 2) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp1736 auto ArithCost = [&](unsigned Opcode, unsigned NumRequired, in costAndCollectOperands() local
1777 Cost = ArithCost(Opcode, 1); in costAndCollectOperands()
1781 Cost = ArithCost(Instruction::Add, S->getNumOperands() - 1); in costAndCollectOperands()
1787 Cost = ArithCost(Instruction::Mul, S->getNumOperands() - 1); in costAndCollectOperands()
1803 Cost += ArithCost(Instruction::Or, in costAndCollectOperands()
1835 InstructionCost AddCost = ArithCost(Instruction::Add, NumTerms - 1, in costAndCollectOperands()
1839 ArithCost(Instruction::Mul, NumNonZeroDegreeNonOneTerms); in costAndCollectOperands()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h2396 InstructionCost ArithCost = 0; in getTreeReductionCost() local
2408 ArithCost += thisT()->getArithmeticInstrCost(Opcode, SubTy, CostKind); in getTreeReductionCost()
2424 ArithCost += in getTreeReductionCost()
2426 return ShuffleCost + ArithCost + in getTreeReductionCost()
2457 InstructionCost ArithCost = thisT()->getArithmeticInstrCost( in getOrderedReductionCost() local
2459 ArithCost *= VTy->getNumElements(); in getOrderedReductionCost()
2461 return ExtractCost + ArithCost; in getOrderedReductionCost()