scoped tables: insert before further lookups
authorAlexandre Oliva <oliva@adacore.com>
Thu, 29 Dec 2022 17:32:46 +0000 (14:32 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 29 Dec 2022 17:32:46 +0000 (14:32 -0300)
commit26be8b84603be48d1cf35bea3be2bb398f7964b7
treeb909a816e129765a46ea1a4b88d0b54b3f87f90f
parentda086e472b61245dedcb2463c53f84072773d1f5
scoped tables: insert before further lookups

Avoid hash table lookups between requesting an insert and storing the
inserted value in avail_exprs_stack.  Lookups before the insert is
completed could fail to find double-hashed elements.

for  gcc/ChangeLog

* tree-ssa-scopedtables.cc
(avail_exprs_stack::lookup_avail_expr): Finish hash table
insertion before further lookups.
gcc/tree-ssa-scopedtables.cc