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]

[PATCH] speedup make_node_stat


I noticed that in make_node_stat there was a store and
then in tree_size there is load which is bad since it
can be done without the store/load.
This patch implements one way.

Bootstrapped and tested on powerpc-apple-darwin with no regressions.

OK?


Thanks, Andrew Pinski

ChangeLog:

	* tree.c (tree_size): Handle TREE_VEC earlier
	and split out the rest of the codes into ...
	(tree_size_1): here.
	(make_node_stat): Call tree_size_1 instead of
	tree_size.




Patch:

Attachment: speedup-tree.diff.txt
Description: Text document


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