Reimplement rewrite_virtuals_into_loop_closed_ssa
authorTom de Vries <tom@codesourcery.com>
Mon, 31 Aug 2015 13:48:29 +0000 (13:48 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 31 Aug 2015 13:48:29 +0000 (13:48 +0000)
commiteaef98f3afdda197bc052c4a341d7a3529a77106
treec6b841b51ee39b7bb765d047527de1ab5644dcbd
parente5f95b665b90a697cc97a5378f761557f728d9a0
Reimplement rewrite_virtuals_into_loop_closed_ssa

2015-08-31  Tom de Vries  <tom@codesourcery.com>

* tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
(find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
parameter.
(find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
(rewrite_into_loop_closed_ssa_1): New function, factored out of ...
(rewrite_into_loop_closed_ssa): ... here.
(replace_uses_in_dominated_bbs): Remove function.
(rewrite_virtuals_into_loop_closed_ssa): Reimplement using
rewrite_into_loop_closed_ssa_1.

From-SVN: r227342
gcc/ChangeLog
gcc/tree-ssa-loop-manip.c