2016-11-29 Andrew Pinski <apinski@cavium.com>
* tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
for the EQ_EXPR.
From-SVN: r242970
+2016-11-29 Andrew Pinski <apinski@cavium.com>
+
+ * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
+ for the EQ_EXPR.
+
2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
PR target/71331
in divide by zero, new_rhs1 / new_rhs will be NULL_TREE. */
if (new_rhs1 && new_rhs2)
{
- tree cond = build2 (EQ_EXPR, TREE_TYPE (cmp_var), cmp_var, val1);
+ tree cond = build2 (EQ_EXPR, boolean_type_node, cmp_var, val1);
gimple_assign_set_rhs_with_ops (gsi,
COND_EXPR, cond,
new_rhs1,