Lines Matching refs:budget
2648 bool OutputASM::trivial(TIntermTyped *expression, int budget) in trivial() argument
2655 return cost(expression, budget) >= 0; in trivial()
2659 int OutputASM::cost(TIntermNode *expression, int budget) in cost() argument
2661 if(budget < 0) in cost()
2663 return budget; in cost()
2668 return budget; in cost()
2672 return budget; in cost()
2684 return cost(binary->getLeft(), budget - 0); in cost()
2688 return cost(binary->getLeft(), cost(binary->getRight(), budget - 1)); in cost()
2701 return cost(unary->getOperand(), budget - 1); in cost()
2723 return cost(trueBlock, budget - 0); in cost()
2727 return cost(falseBlock, budget - 0); in cost()
2732 return cost(trueBlock, cost(falseBlock, budget - 2)); in cost()