Re: [PATCH] Update SSA_NAME manager to use two lists

* tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
	rather than moving each name to the freelist individually.

From-SVN: r228668
This commit is contained in:
Jeff Law 2015-10-09 15:16:16 -06:00 committed by Jeff Law
parent 4c926b8a61
commit 9cf1766f2f
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2015-10-09 Jeff Law <law@redhat.com>
* tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
rather than moving each name to the freelist individually.
2015-10-09 Steve Ellcey <sellcey@imgtec.com>
* config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.

View File

@ -127,11 +127,8 @@ ssanames_print_statistics (void)
void
flush_ssaname_freelist (void)
{
while (!vec_safe_is_empty (FREE_SSANAMES_QUEUE (cfun)))
{
tree t = FREE_SSANAMES_QUEUE (cfun)->pop ();
vec_safe_push (FREE_SSANAMES (cfun), t);
}
vec_safe_splice (FREE_SSANAMES (cfun), FREE_SSANAMES_QUEUE (cfun));
vec_safe_truncate (FREE_SSANAMES_QUEUE (cfun), 0);
}
/* Return an SSA_NAME node for variable VAR defined in statement STMT