Commit a23c217d by Trevor Saunders Committed by Trevor Saunders

merge register_dump_files_1 into register_dump_files and remove more fiddling with properties

gcc/
	* pass_manager.h (pass_manager::register_dump_files_1): Remove declaration.
	* passes.c (pass_manager::register_dump_files_1): Merge into
	(pass_manager::register_dump_files): this, and remove its handling of
	properties since the pass always has the properties anyway.
	(pass_manager::pass_manager): Adjust.

From-SVN: r209478
parent 0cd11b40
2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
* pass_manager.h (pass_manager::register_dump_files_1): Remove declaration.
* passes.c (pass_manager::register_dump_files_1): Merge into
(pass_manager::register_dump_files): this, and remove its handling of
properties since the pass always has the properties anyway.
(pass_manager::pass_manager): Adjust.
2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
* pass_manager.h (pass_manager::register_dump_files_1): Adjust.
* passes.c (pass_manager::register_dump_files_1): Remove dead code
dealing with properties.
......
......@@ -91,8 +91,7 @@ public:
private:
void set_pass_for_id (int id, opt_pass *pass);
void register_dump_files_1 (opt_pass *pass);
void register_dump_files (opt_pass *pass, int properties);
void register_dump_files (opt_pass *pass);
private:
context *m_ctxt;
......
......@@ -706,11 +706,10 @@ pass_manager::register_one_dump_file (opt_pass *pass)
free (CONST_CAST (char *, full_name));
}
/* Recursive worker function for register_dump_files. */
/* Register the dump files for the pass_manager starting at PASS. */
void
pass_manager::
register_dump_files_1 (opt_pass *pass)
pass_manager::register_dump_files (opt_pass *pass)
{
do
{
......@@ -718,25 +717,13 @@ register_dump_files_1 (opt_pass *pass)
register_one_dump_file (pass);
if (pass->sub)
register_dump_files_1 (pass->sub);
register_dump_files (pass->sub);
pass = pass->next;
}
while (pass);
}
/* Register the dump files for the pass_manager starting at PASS.
PROPERTIES reflects the properties that are guaranteed to be available at
the beginning of the pipeline. */
void
pass_manager::
register_dump_files (opt_pass *pass,int properties)
{
pass->properties_required |= properties;
register_dump_files_1 (pass);
}
struct pass_registry
{
const char* unique_name;
......@@ -1536,19 +1523,11 @@ pass_manager::pass_manager (context *ctxt)
#undef TERMINATE_PASS_LIST
/* Register the passes with the tree dump code. */
register_dump_files (all_lowering_passes, PROP_gimple_any);
register_dump_files (all_small_ipa_passes,
PROP_gimple_any | PROP_gimple_lcf | PROP_gimple_leh
| PROP_cfg);
register_dump_files (all_regular_ipa_passes,
PROP_gimple_any | PROP_gimple_lcf | PROP_gimple_leh
| PROP_cfg);
register_dump_files (all_late_ipa_passes,
PROP_gimple_any | PROP_gimple_lcf | PROP_gimple_leh
| PROP_cfg);
register_dump_files (all_passes,
PROP_gimple_any | PROP_gimple_lcf | PROP_gimple_leh
| PROP_cfg);
register_dump_files (all_lowering_passes);
register_dump_files (all_small_ipa_passes);
register_dump_files (all_regular_ipa_passes);
register_dump_files (all_late_ipa_passes);
register_dump_files (all_passes);
}
/* If we are in IPA mode (i.e., current_function_decl is NULL), call
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment