[dataflow] S/390: Call df_insn_rescan after adding r13 to literal pool refs

Kenneth Zadeck zadeck@naturalbridge.com
Mon Jan 15 13:07:00 GMT 2007


Andreas Krebbel wrote:
> Hello,
>
> the s390 back end annotates literal pool references with explicit uses of
> the literal pool base register r13.  This patch calls df_insn_rescan in
> order to allow the df framework to deal with the new register reference.
>
> OK for dataflow branch?
>
> Bye,
>
> -Andreas-
>
>
> 2007-01-15  Andreas Krebbel  <krebbel1@de.ibm.com>
>
> 	* config/s390/s390.c: Include df.h.
> 	(s390_emit_prologue): Call df_insn_rescan when annotating constant
> 	pool references.
>
>
> Index: gcc/config/s390/s390.c
> ===================================================================
> *** gcc/config/s390/s390.c.orig	2007-01-15 09:00:51.000000000 +0100
> --- gcc/config/s390/s390.c	2007-01-15 11:01:26.000000000 +0100
> *************** Software Foundation, 51 Franklin Street,
> *** 51,56 ****
> --- 51,57 ----
>   #include "langhooks.h"
>   #include "optabs.h"
>   #include "tree-gimple.h"
> + #include "df.h"
>   
>   
>   /* Define the specific costs for a given cpu.  */
> *************** s390_emit_prologue (void)
> *** 7155,7161 ****
>   
>     for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
>       if (INSN_P (insn))
> !       annotate_constant_pool_refs (&PATTERN (insn));
>   
>     pop_topmost_sequence ();
>   
> --- 7156,7165 ----
>   
>     for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
>       if (INSN_P (insn))
> !       {
> ! 	annotate_constant_pool_refs (&PATTERN (insn));
> ! 	df_insn_rescan (insn);
> !       }
>   
>     pop_topmost_sequence ();
>   
>   
yes



More information about the Gcc-patches mailing list