From: Alexandre Oliva Date: Thu, 29 Dec 2022 17:32:56 +0000 (-0300) Subject: postreload-gcse: no insert on mere lookup X-Git-Tag: basepoints/gcc-14~2283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=184278b93fc028c82b2efff74e54a941915556da;p=thirdparty%2Fgcc.git postreload-gcse: no insert on mere lookup lookup_expr_in_table is not used for insertions, but it mistakenly used INSERT rather than NO_INSERT. for gcc/ChangeLog * postreload-gcse.cc (lookup_expr_in_table): Use NO_INSERT. --- diff --git a/gcc/postreload-gcse.cc b/gcc/postreload-gcse.cc index 1c795b43ca36..2818f54dedd2 100644 --- a/gcc/postreload-gcse.cc +++ b/gcc/postreload-gcse.cc @@ -447,7 +447,7 @@ lookup_expr_in_table (rtx pat) tmp_expr->hash = hash; tmp_expr->avail_occr = NULL; - slot = expr_table->find_slot_with_hash (tmp_expr, hash, INSERT); + slot = expr_table->find_slot_with_hash (tmp_expr, hash, NO_INSERT); obstack_free (&expr_obstack, tmp_expr); if (!slot)