This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Enable ipa-pure-const at WHOPR
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 20 Apr 2010 22:44:54 +0200
- Subject: Enable ipa-pure-const at WHOPR
Hi,
I was too fast to assume that whopr is not safe for pure const since declataion
changes made will be lost. We actually preserve updated declarations from WPA
and the pass work as expected, enabled thus.
Will commit this as obvious once testers test whopr without this change.
Bootstrapped/regtsted x86_64-linux.
Honza
* opts.c (decode_options): Enable pure-const pass for whopr.
Index: opts.c
===================================================================
--- opts.c (revision 158563)
+++ opts.c (working copy)
@@ -1125,7 +1125,6 @@ decode_options (unsigned int argc, const
/* These passes are not WHOPR compatible yet. */
flag_ipa_cp = 0;
flag_ipa_reference = 0;
- flag_ipa_pure_const = 0;
flag_ipa_type_escape = 0;
flag_ipa_pta = 0;
flag_ipa_struct_reorg = 0;