fold-const.c (tree_expr_nonzero_p): Fix thinko.
* fold-const.c (tree_expr_nonzero_p): Fix thinko. From-SVN: r110849
This commit is contained in:
parent
61864771af
commit
284cbef5cf
|
@ -1,5 +1,7 @@
|
|||
2006-02-10 Jeff Law <law@redhat.com>
|
||||
|
||||
* fold-const.c (tree_expr_nonzero_p): Fix thinko.
|
||||
|
||||
PR tree-optimization/26213
|
||||
* tree-ssa-threadedge.c (simplify_control_stmt_condition): Do not
|
||||
loop trying to follow SSA_NAME_VALUE chains.
|
||||
|
|
|
@ -11256,7 +11256,7 @@ tree_expr_nonzero_p (tree t)
|
|||
tree inner_type = TREE_TYPE (TREE_OPERAND (t, 0));
|
||||
tree outer_type = TREE_TYPE (t);
|
||||
|
||||
return (TYPE_PRECISION (inner_type) >= TYPE_PRECISION (outer_type)
|
||||
return (TYPE_PRECISION (outer_type) >= TYPE_PRECISION (inner_type)
|
||||
&& tree_expr_nonzero_p (TREE_OPERAND (t, 0)));
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue