This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Run life analysis after optimize_mode_switching pass.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]