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:
parent
4c926b8a61
commit
9cf1766f2f
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue