diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-22 12:56:47 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-22 12:56:47 +0000 |
commit | 030087e31b1253fb9ed6835a82e93a61ccc02493 (patch) | |
tree | e2bc6c7177a42d1b832555b60d0a854bcb834bd0 /gcc/tree-ssa-structalias.c | |
parent | b4f314ea97f04620d290f3ae25d831f46692864f (diff) | |
parent | ac875fa40bf5429aff0612943d8c5705c4e11bb5 (diff) | |
download | gcc-030087e31b1253fb9ed6835a82e93a61ccc02493.tar.gz |
Merge from trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@209623 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 59793567994..e040c4fc58d 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -6988,12 +6988,6 @@ compute_may_aliases (void) return 0; } -static bool -gate_tree_pta (void) -{ - return flag_tree_pta; -} - /* A dummy pass to cause points-to information to be computed via TODO_rebuild_alias. */ @@ -7004,7 +6998,6 @@ const pass_data pass_data_build_alias = GIMPLE_PASS, /* type */ "alias", /* name */ OPTGROUP_NONE, /* optinfo_flags */ - true, /* has_gate */ false, /* has_execute */ TV_NONE, /* tv_id */ ( PROP_cfg | PROP_ssa ), /* properties_required */ @@ -7022,7 +7015,7 @@ public: {} /* opt_pass methods: */ - bool gate () { return gate_tree_pta (); } + virtual bool gate (function *) { return flag_tree_pta; } }; // class pass_build_alias @@ -7044,7 +7037,6 @@ const pass_data pass_data_build_ealias = GIMPLE_PASS, /* type */ "ealias", /* name */ OPTGROUP_NONE, /* optinfo_flags */ - true, /* has_gate */ false, /* has_execute */ TV_NONE, /* tv_id */ ( PROP_cfg | PROP_ssa ), /* properties_required */ @@ -7062,7 +7054,7 @@ public: {} /* opt_pass methods: */ - bool gate () { return gate_tree_pta (); } + virtual bool gate (function *) { return flag_tree_pta; } }; // class pass_build_ealias @@ -7075,16 +7067,6 @@ make_pass_build_ealias (gcc::context *ctxt) } -/* Return true if we should execute IPA PTA. */ -static bool -gate_ipa_pta (void) -{ - return (optimize - && flag_ipa_pta - /* Don't bother doing anything if the program has errors. */ - && !seen_error ()); -} - /* IPA PTA solutions for ESCAPED. */ struct pt_solution ipa_escaped_pt = { true, false, false, false, false, false, false, false, NULL }; @@ -7436,7 +7418,6 @@ const pass_data pass_data_ipa_pta = SIMPLE_IPA_PASS, /* type */ "pta", /* name */ OPTGROUP_NONE, /* optinfo_flags */ - true, /* has_gate */ true, /* has_execute */ TV_IPA_PTA, /* tv_id */ 0, /* properties_required */ @@ -7454,8 +7435,15 @@ public: {} /* opt_pass methods: */ - bool gate () { return gate_ipa_pta (); } - unsigned int execute () { return ipa_pta_execute (); } + virtual bool gate (function *) + { + return (optimize + && flag_ipa_pta + /* Don't bother doing anything if the program has errors. */ + && !seen_error ()); + } + + virtual unsigned int execute (function *) { return ipa_pta_execute (); } }; // class pass_ipa_pta |