Lines Matching full:cost
1 //===- CostModel.cpp ------ Cost Model Analysis ---------------------------===//
10 // This file defines the cost model analysis. It provides a very basic cost
12 // to approximate the cost of any IR instruction when lowered to machine
13 // instructions. The cost results are unit-less and the cost number represents
15 // branches are predicted, etc. The cost numbers can be added in order to
33 #define CM_NAME "cost-model"
50 /// Returns the expected cost of the instruction.
51 /// Returns -1 if the cost is unknown.
52 /// Note, this method does not cache the cost calculation and it
70 static const char cm_name[] = "Cost Model Analysis";
524 unsigned Cost = getInstructionCost(Inst);
525 if (Cost != (unsigned)-1)
526 OS << "Cost Model: Found an estimated cost of " << Cost;
528 OS << "Cost Model: Unknown cost";