match.pd: Implement patterns from associate_plusminus and factor in differences from...
authorRichard Biener <rguenther@suse.de>
Tue, 11 Nov 2014 13:23:26 +0000 (13:23 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 11 Nov 2014 13:23:26 +0000 (13:23 +0000)
commitcc7b5acf3761c358bf9705f58b4fcf9625c49b0e
tree97ff581f26d92d0c274ac9fe16ef63b259ee439a
parent9310366b70c4953aff526ec62d0405dc729d5edf
match.pd: Implement patterns from associate_plusminus and factor in differences from the...

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

* match.pd: Implement patterns from associate_plusminus
and factor in differences from the fold-const.c implementation.
* fold-const.c (fold_binary_loc): Remove patterns here.
* tree-ssa-forwprop.c (associate_plusminus): Remove.
(pass_forwprop::execute): Don't call it.
* tree.c (tree_nop_conversion_p): New function, factored
from tree_nop_conversion.
* tree.h (tree_nop_conversion_p): Declare.

From-SVN: r217349
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd
gcc/tree-ssa-forwprop.c
gcc/tree.c
gcc/tree.h