* tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
rather than moving each name to the freelist individually.
From-SVN: r228668
+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.
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