Home
last modified time | relevance | path

Searched refs:x_is_zero (Results 1 – 3 of 3) sorted by relevance

/external/llvm/test/Transforms/InstCombine/
Ddiv-shift.ll81 %x_is_zero = icmp eq i32 %x, 0
82 %divisor = select i1 %x_is_zero, i32 1, i32 %x
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Ddiv-shift.ll96 %x_is_zero = icmp eq i32 %x, 0
97 %divisor = select i1 %x_is_zero, i32 1, i32 %x
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dconstant_folding.cc2665 const bool x_is_zero = IsZeros(*x); in SimplifyArithmeticOperations() local
2666 const bool x_is_one = x_is_zero ? false : IsOnes(*x); in SimplifyArithmeticOperations()
2670 ((is_mul && x_is_one) || (is_add && x_is_zero))) { in SimplifyArithmeticOperations()
2677 if (y_matches_output_shape && (is_sub && x_is_zero)) { in SimplifyArithmeticOperations()
2727 bool optimize_zeros_divided_by_y = is_any_div && x_is_zero && is_aggressive; in SimplifyArithmeticOperations()
2728 if ((x_is_zero || y_is_zero) && in SimplifyArithmeticOperations()
2749 if ((is_mul || is_any_div) && x_is_zero && x_matches_output_shape) { in SimplifyArithmeticOperations()