This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Disable FWPROP on pathological cases
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Paolo Bonzini <bonzini at gnu dot org>
- Date: Tue, 24 Jan 2012 22:40:42 +0100
- Subject: Re: [RFC] Disable FWPROP on pathological cases
- References: <201201242226.29027.ebotcazou@adacore.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Jan 24, 2012 at 10:26:28PM +0100, Eric Botcazou wrote:
> +static bool
> +is_too_expensive (const char *pass)
> +{
> + int ratio = DF_USES_TABLE_SIZE () / (n_basic_blocks - NUM_FIXED_BLOCKS);
> +
> + /* Trying to propagate into uses in functions with gigantic basic blocks
> + will take a long time and is unlikely to be particularly useful. */
> + if (ratio > 20000)
Use a param for this instead of constant?
Jakub