gimple-ssa-store-merging.c (count_multiple_uses): New function.
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Nov 2017 13:08:41 +0000 (14:08 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Nov 2017 13:08:41 +0000 (14:08 +0100)
commitd7a9512ea9131eed5202e670577741f768626244
tree39accfaa39f0c595373475de9c5335ae63373e43
parent614bc51c3f2a933e694013e6c867dfdcd153017f
gimple-ssa-store-merging.c (count_multiple_uses): New function.

* gimple-ssa-store-merging.c (count_multiple_uses): New function.
(split_group): Add total_orig and total_new arguments, estimate the
number of statements related to the store group without store merging
and with store merging.
(imm_store_chain_info::output_merged_store): Adjust split_group
callers, punt if estimated number of statements with store merging
is not smaller than estimated number of statements without it.
Formatting fix.
(handled_load): Remove has_single_use checks.
(pass_store_merging::process_store): Likewise.

From-SVN: r254579
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c