2014-10-28 Richard Biener <rguenther@suse.de>
commitb768d5ee79be7bbe15ec7a6d76349ad93b256439
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Oct 2014 14:23:27 +0000 (28 14:23 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Oct 2014 14:23:27 +0000 (28 14:23 +0000)
tree9a0c1ff3317b62c1e1d764dcfa9b97e606178106
parent9f29061ac58f345b6225b4c0d55a51142eeadf02
2014-10-28  Richard Biener  <rguenther@suse.de>

* gimple-fold.h (follow_single_use_edges): Declare.
* gimple-fold.c (follow_single_use_edges): New function.
(gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
* tree-ssa-propagate.c
(substitute_and_fold_dom_walker::before_dom_children): Allow
following single-use edges when folding stmts we propagated into.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216799 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-fold.c
gcc/gimple-fold.h
gcc/tree-ssa-propagate.c