* gimple-ssa-store-merging.c (count_multiple_uses): New function.
commit871a91ec494297956c993944b31b243f76111fa0
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Nov 2017 13:08:41 +0000 (9 13:08 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Nov 2017 13:08:41 +0000 (9 13:08 +0000)
tree39accfaa39f0c595373475de9c5335ae63373e43
parent01708e7d9bee225d58f3aa0a2d0f03ecea574e33
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254579 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c