match.pd: Add two abs patterns.
authorRichard Biener <rguenther@suse.de>
Mon, 3 Nov 2014 12:59:47 +0000 (12:59 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 3 Nov 2014 12:59:47 +0000 (12:59 +0000)
commitf3582e541c61d1ae2f859d1c83ba6559fd5eccfb
tree887020564176f5e6ba895804546b1120a2686c82
parent9929321af792cefeb26ff1e59287f94fc0112b2c
match.pd: Add two abs patterns.

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

* match.pd: Add two abs patterns.  Announce tree_expr_nonnegative_p.
Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
* fold-const.c (fold_unary_loc): Remove them here.
(tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
* gimple-fold.c (fold_gimple_assign): Remove now obsolete
GIMPLE_UNARY_RHS case.
(gimple_fold_stmt_to_constant_1): Likewise.
(replace_stmt_with_simplification): Fix inverted comparison.

From-SVN: r217039
gcc/ChangeLog
gcc/fold-const.c
gcc/gimple-fold.c
gcc/match.pd