[PATCH] Break out phi-only cprop into its own file
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Sep 2015 15:29:01 +0000 (15:29 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Sep 2015 15:29:01 +0000 (15:29 +0000)
commitf1ebffbebfdf33a4676629b5504289d7980b811d
tree6635c075164421ea26114d5493d1d3a225bd5829
parent445d2ce9ec8e46b9f7da01d5191e2b7011915a3a
[PATCH] Break out phi-only cprop into its own file

PR tree-optimization/47679
* Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
* tree-ssa-dom.c: Remove unnecessary header includes.
(remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
(get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
(propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
(eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
(pass_phi_only_cprop::execute): Likewise.
(make_pass_phi_only_cprop): Likewise.
* tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
uses of file scoped statics by passing the required objects
as parameters wherever needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227908 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/Makefile.in
gcc/tree-ssa-dom.c
gcc/tree-ssa-phionlycprop.c [new file with mode: 0644]