2015-10-26 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 2015 14:22:20 +0000 (14:22 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 2015 14:22:20 +0000 (14:22 +0000)
commit1603b4dcf61389bade87b9317ac8946525d472c5
tree7612eb7cb09900d59522c9f603ee66b5da5b0595
parent3b940ad91b3b49dcc73784d3ad029acfe97ea100
2015-10-26  Richard Biener  <rguenther@suse.de>

* tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
(do_valueize): New function.
(pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
replace_uses_by.
* tree-ssa-threadedge.c: Remove builtins.h include, include
gimple-fold.h
(fold_assignment_stmt): Remove.
(threadedge_valueize): New function.
(record_temporary_equivalences_from_stmts): Use
gimple_fold_stmt_to_constant_1, note additional cleanup
opportunities.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229364 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-object-size.c
gcc/tree-ssa-threadedge.c