aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2022-12-29 14:32:56 -0300
committerAlexandre Oliva <oliva@gnu.org>2022-12-29 14:39:47 -0300
commit184278b93fc028c82b2efff74e54a941915556da (patch)
tree453d92ea6e5c10d1bda4260068bfa0497d95c1d5 /gcc
parenta7d397bf6fa23c5d88bf0dbb32ce8247831c3bf4 (diff)
downloadgcc-184278b93fc028c82b2efff74e54a941915556da.zip
gcc-184278b93fc028c82b2efff74e54a941915556da.tar.gz
gcc-184278b93fc028c82b2efff74e54a941915556da.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/postreload-gcse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/postreload-gcse.cc b/gcc/postreload-gcse.cc
index 1c795b4..2818f54 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)