Skip to content

Commit

Permalink
2016-11-29 Andrew Pinski <apinski@cavium.com>
Browse files Browse the repository at this point in the history
        * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
        for the EQ_EXPR.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242970 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
pinskia committed Nov 29, 2016
1 parent 7ac42f4 commit e901b43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
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
Expand Down
2 changes: 1 addition & 1 deletion gcc/tree-vrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e901b43

Please sign in to comment.