This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[dataflow] S/390: Call df_insn_rescan after adding r13 to literal pool refs
- From: Andreas Krebbel <Andreas dot Krebbel at de dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dberlin at dberlin dot org, zadeck at naturalbridge dot com
- Date: Mon, 15 Jan 2007 12:40:10 +0100
- Subject: [dataflow] S/390: Call df_insn_rescan after adding r13 to literal pool refs
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 ();