This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Allow passmanager to switch between IPA and local passes


Jan Hubicka wrote:

(this might allow us to eventually get rid of tree_rest_of_compilation
too as the tree_rest_of_compilation and rest_of_compilation can just
be last pass of the overall pass queue so we will move more control to
passmanager rather doing it in the cgraphunit driver).

I agree, and I already posted a patch to get rid of rest_of_compilation.


! 	    {
! 	      struct cgraph_node *node;
! 	      tree_register_cfg_hooks ();
! 	      for (node = cgraph_nodes; node; node = node->next)
! 		if (node->analyzed)
! 		  {
! 		    push_cfun (DECL_STRUCT_FUNCTION (node->decl));
! 		    current_function_decl = node->decl;
! 		    execute_pass_list (pass->sub);
! 		    free_dominance_info (CDI_DOMINATORS);
! 		    free_dominance_info (CDI_POST_DOMINATORS);
! 		    current_function_decl = NULL;
! 		    pop_cfun ();
! 		    ggc_collect ();
! 		  }
! 	    }
! 	}

Maybe extract to a function called cgraph_execute_pass_list or something like that?


Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]