This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Run life analysis after optimize_mode_switching pass.
- From: Steven Bosscher <stevenb at suse dot de>
- To: gcc-patches at gcc dot gnu dot org, Uros Bizjak <ubizjak at gmail dot com>
- Cc: Richard Henderson <rth at redhat dot com>
- Date: Tue, 12 Jul 2005 15:55:13 +0200
- Subject: Re: [PATCH] Run life analysis after optimize_mode_switching pass.
- References: <5787cf4705071206291cef406f@mail.gmail.com>
On Tuesday 12 July 2005 15:29, Uros Bizjak wrote:
> @@ -730,6 +733,13 @@ rest_of_handle_mode_switching (void)
> no_new_pseudos = 0;
> optimize_mode_switching (NULL);
> no_new_pseudos = 1;
> +
> + mode_switching_completed = 1;
> +
> + /* Mode switching can insert instructions that
> + change global registers life data. */
> + life_analysis (NULL, PROP_REG_INFO);
> +
> #endif /* OPTIMIZE_MODE_SWITCHING */
> }
Why not run life_analysis only if mode switching actually _has_ inserted
instructions that can cause your problem?
Gr.
Steven