From: Andrew Pinski Date: Tue, 29 Nov 2016 19:16:15 +0000 (+0000) Subject: tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node for the EQ_EXPR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28ea3e977ce07c1d0ad14c188336419288fce8d1;p=gcc.git tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node for the EQ_EXPR. 2016-11-29 Andrew Pinski * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node for the EQ_EXPR. From-SVN: r242970 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 16224c78659..10660b74feb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-29 Andrew Pinski + + * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node + for the EQ_EXPR. + 2016-11-29 Chen Gang PR target/71331 diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index f3d571d98b2..600634d1804 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -10225,7 +10225,7 @@ simplify_stmt_using_ranges (gimple_stmt_iterator *gsi) 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,