]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-ssa-phiopt.c
2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
authorwschmidt <wschmidt@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jun 2012 13:38:16 +0000 (13:38 +0000)
committerwschmidt <wschmidt@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jun 2012 13:38:16 +0000 (13:38 +0000)
commit239e96709a6ad24af419cbbc5a86880f9eaf5556
tree4844a9d49d0608a170eeaa9cc4a3f4c4e4621aa6
parent17631aa0c7fe74b6c43a2705d02404911fa5d704
2012-06-12  Bill Schmidt  <wschmidt@linux.ibm.com>

* opts.c: Add -fhoist-adjacent-loads to -O2 and above.
* tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
declaration.
(hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
(tree_ssa_phiopt): Call gate_hoist_loads.
(tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
(tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
hoist_adjacent_loads.
(local_mem_dependence): New function.
(hoist_adjacent_loads): Likewise.
(gate_hoist_loads): Likewise.
* common.opt (fhoist-adjacent-loads): New switch.
* Makefile.in (tree-ssa-phiopt.o): Added dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188457 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/Makefile.in
gcc/common.opt
gcc/opts.c
gcc/tree-ssa-phiopt.c