Skip to content
Snippets Groups Projects
Commit c4e50e50 authored by Jason Merrill's avatar Jason Merrill
Browse files

c++: speed up looking up the current class

While looking at template instantiation tracing, I noticed that we were
frequently looking up a particular class template instance while
instantiating it.  This patch shortcuts that lookup, and speeds up compiling
stdc++.h with my (checking/unoptimized) compiler by about 3%.

gcc/cp/ChangeLog:

	* pt.c (lookup_template_class_1): Shortcut current_class_type.
parent f16f65f8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment