Commit 7cf76184 by Tom de Vries Committed by Tom de Vries

Remove first_pass_instance

2015-11-16  Tom de Vries  <tom@codesourcery.com>

	* passes.c (first_pass_instance): Remove variable.
	(execute_todo): Remove setting of first_pass_instance.
	* tree-pass.h (first_pass_instance): Remove declaration.

From-SVN: r230420
parent c06883ac
2015-11-16 Tom de Vries <tom@codesourcery.com> 2015-11-16 Tom de Vries <tom@codesourcery.com>
* passes.c (first_pass_instance): Remove variable.
(execute_todo): Remove setting of first_pass_instance.
* tree-pass.h (first_pass_instance): Remove declaration.
2015-11-16 Tom de Vries <tom@codesourcery.com>
* passes.def: Add arg to pass_ccp pass instantiation. * passes.def: Add arg to pass_ccp pass instantiation.
* tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
instead of first_pass_instance. instead of first_pass_instance.
...@@ -151,7 +151,6 @@ debug_pass (void) ...@@ -151,7 +151,6 @@ debug_pass (void)
/* Global variables used to communicate with passes. */ /* Global variables used to communicate with passes. */
bool in_gimple_form; bool in_gimple_form;
bool first_pass_instance;
/* This is called from various places for FUNCTION_DECL, VAR_DECL, /* This is called from various places for FUNCTION_DECL, VAR_DECL,
...@@ -2005,9 +2004,6 @@ execute_todo (unsigned int flags) ...@@ -2005,9 +2004,6 @@ execute_todo (unsigned int flags)
timevar_push (TV_TODO); timevar_push (TV_TODO);
/* Inform the pass whether it is the first time it is run. */
first_pass_instance = (flags & TODO_mark_first_instance) != 0;
statistics_fini_pass (); statistics_fini_pass ();
if (flags) if (flags)
......
...@@ -629,12 +629,6 @@ extern void ipa_read_optimization_summaries (void); ...@@ -629,12 +629,6 @@ extern void ipa_read_optimization_summaries (void);
extern void register_one_dump_file (opt_pass *); extern void register_one_dump_file (opt_pass *);
extern bool function_called_by_processed_nodes_p (void); extern bool function_called_by_processed_nodes_p (void);
/* Set to true if the pass is called the first time during compilation of the
current function. Note that using this information in the optimization
passes is considered not to be clean, and it should be avoided if
possible. */
extern bool first_pass_instance;
/* Declare for plugins. */ /* Declare for plugins. */
extern void do_per_function_toporder (void (*) (function *, void *), void *); extern void do_per_function_toporder (void (*) (function *, void *), void *);
......
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