Re: [PATCH 1/3] Support get_or_insert in ordered_hash_map

2023-07-31 Thread Richard Biener via Gcc-patches
On Mon, Jul 31, 2023 at 1:06 PM Andrzej Turko via Gcc-patches wrote: > > Get_or_insert method is already supported by the unordered hash map. > Adding it to the ordered map enables us to replace the unordered map > with the ordered one in cases where ordering may be useful. OK. Note the Makefile

[PATCH 1/3] Support get_or_insert in ordered_hash_map

2023-07-31 Thread Andrzej Turko via Gcc-patches
Get_or_insert method is already supported by the unordered hash map. Adding it to the ordered map enables us to replace the unordered map with the ordered one in cases where ordering may be useful. Signed-off-by: Andrzej Turko gcc/ChangeLog: * ordered-hash-map.h: Add get_or_insert.