gcc/
authoryufeng <yufeng@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Dec 2013 08:06:16 +0000 (08:06 +0000)
committeryufeng <yufeng@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Dec 2013 08:06:16 +0000 (08:06 +0000)
commit0ca4377950731c07e9d723b91deec7ebb6fcdbe7
tree94c5fbe90a160607cb09f605cc0b5e8b6382bc01
parent0431e6cc28c75cc368090fd9041aeb08337de5d1
gcc/

* gimple-ssa-strength-reduction.c: Include tree-affine.h.
(name_expansions): New static variable.
(alt_base_map): Ditto.
(get_alternative_base): New function.
(find_basis_for_candidate): For CAND_REF, optionally call
find_basis_for_base_expr with the returned value from
get_alternative_base.
(record_potential_basis): Add new parameter 'base' of type 'tree';
add an assertion of non-NULL base; use base to set node->base_expr.
(alloc_cand_and_find_basis): Update; call record_potential_basis
for CAND_REF with the returned value from get_alternative_base.
(replace_refs): Dump details on the replacing.
(execute_strength_reduction): Call pointer_map_create for
alt_base_map; call free_affine_expand_cache with &name_expansions.

gcc/testsuite/

* gcc.dg/tree-ssa/slsr-39.c: Update.
* gcc.dg/tree-ssa/slsr-41.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205655 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/slsr-39.c
gcc/testsuite/gcc.dg/tree-ssa/slsr-41.c [new file with mode: 0644]