+2016-07-25 Martin Liska <mliska@suse.cz>
+
+ PR tree-optimization/71987
+ * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
+ just for SSA_NAMEs. Fix GNU coding style.
+
2016-07-25 Martin Liska <mliska@suse.cz>
PR gcov-profile/64874
(or &, corresponding to 1/0 in the phi arguments,
push into ops the individual range test arguments
of the bitwise or resp. and, recursively. */
- if (!get_ops (rhs, code, &ops,
+ if (TREE_CODE (rhs) == SSA_NAME
+ && !get_ops (rhs, code, &ops,
loop_containing_stmt (stmt))
&& (TREE_CODE_CLASS (gimple_assign_rhs_code (stmt))
!= tcc_comparison)
else if (is_gimple_assign (stmt)
&& (TREE_CODE_CLASS (gimple_assign_rhs_code (stmt))
== tcc_comparison)
- &&!get_ops (lhs, code, &ops,
- loop_containing_stmt (stmt))
+ && !get_ops (lhs, code, &ops,
+ loop_containing_stmt (stmt))
&& has_single_use (lhs))
{
operand_entry *oe = operand_entry_pool.allocate ();