[PATCH] tree-optimization/38474 - fix store-merging compile-time regression

Jakub Jelinek jakub@redhat.com
Thu Feb 11 11:00:56 GMT 2021


On Thu, Feb 11, 2021 at 11:55:30AM +0100, Richard Biener wrote:
> 2021-02-11  Richard Biener  <rguenther@suse.de>
> 
> 	PR tree-optimization/38474
> 	* params.opt (-param=max-store-chains-to-track=): New param.
> 	(-param=max-stores-to-track=): Likewise.
> 	* doc/invoke.texi (max-store-chains-to-track): Document.
> 	(max-stores-to-track): Likewise.
> 	* gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
> 	New.
> 	(pass_store_merging::m_n_stores): Likewise.
> 	(pass_store_merging::terminate_and_process_chain): Update
> 	m_n_stores and m_n_chains.
> 	(pass_store_merging::process_store): Likewise.   Terminate
> 	oldest chains if the number of stores or chains get too large.
> 	(imm_store_chain_info::terminate_and_process_chain): Dump
> 	chain length.

LGTM.

	Jakub



More information about the Gcc-patches mailing list