r266692 - in /trunk/gcc: ChangeLog cgraph.h cgr...

plouj@gcc.gnu.org plouj@gcc.gnu.org
Fri Nov 30 22:27:00 GMT 2018


Author: plouj
Date: Fri Nov 30 22:27:11 2018
New Revision: 266692

URL: https://gcc.gnu.org/viewcvs?rev=266692&root=gcc&view=rev
Log:
Minimize clone counter memory usage in create_virtual_clone.

Based on Martin Jambour's suggestion:
https://gcc.gnu.org/ml/gcc-patches/2018-09/msg00111.html

gcc:

	* cgraph.h (clone_function_name): Add a variant that takes a
	tree decl.
	* cgraph.h (cgraph_node::create_virtual_clone): Add a new
	argument: num_suffix.
	* cgraphclones.c (cgraph_node::create_virtual_clone): Pass
	num_suffix to clone_function_name.
	(clone_function_name): Add a variant that takes a tree decl.
	* ipa-cp.c (create_specialized_node): Keep track of clone
	counters in clone_num_suffixes hash map.
	(ipcp_driver): Free the counter hash map.
	* ipa-hsa.c (process_hsa_functions): Creates at most one hsa
	clone per function.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraph.h
    trunk/gcc/cgraphclones.c
    trunk/gcc/ipa-cp.c
    trunk/gcc/ipa-hsa.c



More information about the Gcc-cvs mailing list