Lines Matching refs:is_constant_value
174 static bool is_constant_value(const Expression& expr, float value) { in is_constant_value() function
180 if (!is_constant_value(*arg, value)) { in is_constant_value()
252 if (is_constant_value(right, 0.0)) { // x + 0 in simplify_no_op_arithmetic()
255 if (is_constant_value(left, 0.0)) { // 0 + x in simplify_no_op_arithmetic()
261 if (is_constant_value(right, 1.0)) { // x * 1 in simplify_no_op_arithmetic()
264 if (is_constant_value(left, 1.0)) { // 1 * x in simplify_no_op_arithmetic()
267 if (is_constant_value(right, 0.0) && !left.hasSideEffects()) { // x * 0 in simplify_no_op_arithmetic()
270 if (is_constant_value(left, 0.0) && !right.hasSideEffects()) { // 0 * x in simplify_no_op_arithmetic()
276 if (is_constant_value(right, 0.0)) { // x - 0 in simplify_no_op_arithmetic()
279 if (is_constant_value(left, 0.0)) { // 0 - x (to `-x`) in simplify_no_op_arithmetic()
286 if (is_constant_value(right, 1.0)) { // x / 1 in simplify_no_op_arithmetic()
289 if (is_constant_value(left, 0.0) && in simplify_no_op_arithmetic()
290 !is_constant_value(right, 0.0) && in simplify_no_op_arithmetic()
298 if (is_constant_value(right, 0.0)) { // x += 0, x -= 0 in simplify_no_op_arithmetic()
307 if (is_constant_value(right, 1.0)) { // x *= 1, x /= 1 in simplify_no_op_arithmetic()