match.pd: Implement bitwise binary and unary simplifications from tree-ssa-forwprop.c.
authorRichard Biener <rguenther@suse.de>
Thu, 6 Nov 2014 09:07:39 +0000 (09:07 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 6 Nov 2014 09:07:39 +0000 (09:07 +0000)
commit5609420fbab5ca93d18219b94eda95779bd75bb2
treee8f63a58ac6d127bfe10b0ea17550a63bc530c20
parent45ea41fe8a833e4605ce0a1af794530030d483e4
match.pd: Implement bitwise binary and unary simplifications from tree-ssa-forwprop.c.

2014-11-06  Richard Biener  <rguenther@suse.de>

* match.pd: Implement bitwise binary and unary simplifications
from tree-ssa-forwprop.c.
* fold-const.c (fold_unary_loc): Remove them here.
(fold_binary_loc): Likewise.
* tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
(truth_valued_ssa_name): Likewise.
(lookup_logical_inverted_value): Likewise.
(simplify_bitwise_binary_1): Likewise.
(hoist_conversion_for_bitop_p): Likewise.
(simplify_bitwise_binary_boolean): Likewise.
(simplify_bitwise_binary): Likewise.
(pass_forwprop::execute): Remove calls to simplify_not_neg_expr
and simplify_bitwise_binary.
* genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
(decision_tree::insert): Also insert non-expressions.

* gcc.dg/tree-ssa/forwprop-28.c: Adjust scanning for the
desired transform.

From-SVN: r217178
gcc/ChangeLog
gcc/fold-const.c
gcc/genmatch.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/forwprop-28.c
gcc/tree-ssa-forwprop.c