Fix bitmap registration of overheads.
commit7664eeb700d9e95339f04a1c308a095b53d7a5fb
authorMartin Liska <mliska@suse.cz>
Tue, 7 May 2019 12:15:45 +0000 (7 14:15 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 7 May 2019 12:15:45 +0000 (7 12:15 +0000)
treeb468ae4fecfc6cb7be9e2510940a0f01564a2975
parent9f708a844853eb2fe87e696d27de14cbd68896f8
Fix bitmap registration of overheads.

2019-05-07  Martin Liska  <mliska@suse.cz>

* bitmap.c (bitmap_register): Come up with
alloc_descriptor_max_uid and assign it for
a new bitmap.
(register_overhead): Use get_descriptor as
a descriptor.
(release_overhead): New.
(bitmap_elem_to_freelist): Call it.
(bitmap_elt_clear_from): Likewise.
(bitmap_obstack_free): Likewise.
(bitmap_move): Sensitively release memory.
* bitmap.h (struct GTY): Add alloc_descriptor and padding.
(bitmap_initialize): Initialize alloc_descriptor to zero.
* tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.

From-SVN: r270942
gcc/ChangeLog
gcc/bitmap.c
gcc/bitmap.h
gcc/tree-ssa-pre.c