Home
last modified time | relevance | path

Searched refs:x_is_zero (Results 1 – 5 of 5) 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/tensorflow/tensorflow/compiler/xla/client/lib/
Dmath.cc930 XlaOp x_is_zero = Eq(x, ScalarLike(x, 0)); in Igamma() local
936 XlaOp enabled = Not(Or(Or(Or(x_is_zero, domain_error), underflow), is_nan)); in Igamma()
943 output = Select(x_is_zero, ZerosLike(output), output); in Igamma()
977 XlaOp x_is_zero = Eq(x, ScalarLike(x, 0)); in IgammaGradA() local
983 XlaOp enabled = Not(Or(Or(Or(x_is_zero, domain_error), underflow), is_nan)); in IgammaGradA()
990 output = Select(x_is_zero, ZerosLike(output), output); in IgammaGradA()
1024 XlaOp x_is_zero = Eq(x, ScalarLike(x, 0)); in RandomGammaGrad() local
1030 XlaOp enabled = Not(Or(Or(Or(x_is_zero, domain_error), underflow), is_nan)); in RandomGammaGrad()
1037 output = Select(x_is_zero, ZerosLike(output), output); in RandomGammaGrad()
/external/llvm-project/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/compiler/tf2xla/kernels/
Dbinary_ops.cc159 auto x_is_zero = xla::Eq(x, zero); in Xlog1pyImpl() local
160 return xla::Select(x_is_zero, zero, non_zero); in Xlog1pyImpl()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dconstant_folding.cc2952 const bool x_is_zero = IsZeros(*x); in SimplifyArithmeticOperations() local
2953 const bool x_is_one = x_is_zero ? false : IsOnes(*x); in SimplifyArithmeticOperations()
2954 if ((is_mul && x_is_one) || (is_add && x_is_zero)) { in SimplifyArithmeticOperations()
2965 if (y_matches_output_shape && (is_sub && x_is_zero)) { in SimplifyArithmeticOperations()
3007 bool optimize_zeros_divided_by_y = is_any_div && x_is_zero && is_aggressive; in SimplifyArithmeticOperations()
3008 if ((x_is_zero || y_is_zero) && in SimplifyArithmeticOperations()
3023 if ((is_mul || is_any_div) && x_is_zero) { in SimplifyArithmeticOperations()