Lines Matching refs:Cost
88 unsigned Cost; // Number of instrs used to generate this value. member
92 ShuffleVal() : Cost(1000000) {} in ShuffleVal()
108 unsigned Cost; member
112 : ShuffleMask(shufflemask), OpNum(opnum), Name(name), Cost(cost) { in Operator()
125 unsigned getCost() const { return Cost; } in getCost()
164 if (ShufTab[ShufTab[ThisOp].Arg0].Cost == 0) { in PrintOperation()
178 if (ShufTab[ShufTab[ThisOp].Arg1].Cost == 0) { in PrintOperation()
196 Count += ShufTab[i].Cost < 100; in getNumEntered()
202 if (ShufTab[Elt].Cost == 0) return; in EvaluateOps()
210 if (ShufTab[Arg0].Cost) in EvaluateOps()
212 if (Arg0 != Arg1 && ShufTab[Arg1].Cost) in EvaluateOps()
221 ShufTab[0x0123].Cost = 0; in main()
224 ShufTab[0x4567].Cost = 0; in main()
241 unsigned MaxCost = ShufTab[0].Cost; in main()
244 if (ShufTab[i].Cost > MaxCost) in main()
245 MaxCost = ShufTab[i].Cost; in main()
275 unsigned MinCost = ShufTab[i].Cost; in main()
280 if (ShufTab[NewElt].Cost < MinCost) { in main()
281 MinCost = ShufTab[NewElt].Cost; in main()
296 if (ShufTab[LHS].Cost > 1000) continue; in main()
300 if (ShufTab[LHS].Cost + 1 >= MaxCost) in main()
309 unsigned Cost = ShufTab[LHS].Cost + Op->getCost(); in main() local
310 if (Cost < ShufTab[ResultMask].Cost) { in main()
311 ShufTab[ResultMask].Cost = Cost; in main()
324 if (ShufTab[RHS].Cost > 1000) continue; in main()
328 if (ShufTab[RHS].Cost + 1 >= MaxCost) in main()
335 if (ShufTab[ResultMask].Cost <= OpCount || in main()
336 ShufTab[ResultMask].Cost <= ShufTab[LHS].Cost || in main()
337 ShufTab[ResultMask].Cost <= ShufTab[RHS].Cost) in main()
347 unsigned Cost = NumVals + Op->getCost(); in main() local
348 if (Cost < ShufTab[ResultMask].Cost) { in main()
349 ShufTab[ResultMask].Cost = Cost; in main()
368 if (ShufTab[i].Cost > 9) in main()
371 ++CostArray[ShufTab[i].Cost]; in main()
389 unsigned CostSat = ShufTab[i].Cost; in main()
406 std::cout << ": Cost " << ShufTab[i].Cost; in main()
409 if (ShufTab[ShufTab[i].Arg0].Cost == 0) { in main()
417 if (ShufTab[ShufTab[i].Arg1].Cost == 0) { in main()
431 if (ShufTab[i].Cost < 1000) { in main()
433 std::cerr << " - Cost " << ShufTab[i].Cost << " - "; in main()