This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[dataflow] remove useless call from fwprop
- From: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Kenneth Zadeck <zadeck at naturalbridge dot com>
- Date: Wed, 28 Mar 2007 11:33:49 +0200
- Subject: [dataflow] remove useless call from fwprop
- Reply-to: bonzini at gnu dot org
This is one of the most expensive df_* calls, and it costs 1%
of compilation time. No kidding.
The call is not necessary anymore. fwprop can process the uses in
whatever order they are, until it reaches a fixed point. It does
need the refs to be ordered, but computing use-def chains already
does that.
Ok?
Paolo
2007-03-28 Paolo Bonzini <bonzini@gnu.org.
* fwprop.c (fwprop_init): Don't call df_maybe_reorganize_use_refs.
Index: fwprop.c
===================================================================
--- fwprop.c (revision 123155)
+++ fwprop.c (working copy)
@@ -933,7 +933,6 @@ fwprop_init (void)
df_set_flags (DF_EQ_NOTES);
df_chain_add_problem (DF_UD_CHAIN);
df_analyze ();
- df_maybe_reorganize_use_refs (DF_REF_ORDER_BY_INSN_WITH_NOTES);
df_set_flags (DF_DEFER_INSN_RESCAN);
}