public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] postreload-gcse: no insert on mere lookup
@ 2022-12-23  3:41 Alexandre Oliva
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2022-12-23  3:41 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:81d50c99e0e59978605dd1eb5b8df86b71b2142a

commit 81d50c99e0e59978605dd1eb5b8df86b71b2142a
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Dec 23 00:35:58 2022 -0300

    postreload-gcse: no insert on mere lookup

Diff:
---
 gcc/postreload-gcse.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/postreload-gcse.cc b/gcc/postreload-gcse.cc
index 1c795b43ca3..2818f54dedd 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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] postreload-gcse: no insert on mere lookup
@ 2022-12-28  5:23 Alexandre Oliva
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2022-12-28  5:23 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8cfbc5956ec8ba5244fbb8b645fe776f8fbdfeb0

commit 8cfbc5956ec8ba5244fbb8b645fe776f8fbdfeb0
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Wed Dec 28 02:21:36 2022 -0300

    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:
---
 gcc/postreload-gcse.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/postreload-gcse.cc b/gcc/postreload-gcse.cc
index 1c795b43ca3..2818f54dedd 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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] postreload-gcse: no insert on mere lookup
@ 2022-12-23  7:31 Alexandre Oliva
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2022-12-23  7:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9be401b9194ebbd5d6b763adcf9f3e74a0e0b36f

commit 9be401b9194ebbd5d6b763adcf9f3e74a0e0b36f
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Dec 23 00:35:58 2022 -0300

    postreload-gcse: no insert on mere lookup

Diff:
---
 gcc/postreload-gcse.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/postreload-gcse.cc b/gcc/postreload-gcse.cc
index 1c795b43ca3..2818f54dedd 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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] postreload-gcse: no insert on mere lookup
@ 2022-12-23  5:27 Alexandre Oliva
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2022-12-23  5:27 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e345bbd9285302bfdafa18fe93e22371d49b4985

commit e345bbd9285302bfdafa18fe93e22371d49b4985
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Dec 23 00:35:58 2022 -0300

    postreload-gcse: no insert on mere lookup

Diff:
---
 gcc/postreload-gcse.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/postreload-gcse.cc b/gcc/postreload-gcse.cc
index 1c795b43ca3..2818f54dedd 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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-28  5:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23  3:41 [gcc(refs/users/aoliva/heads/testme)] postreload-gcse: no insert on mere lookup Alexandre Oliva
2022-12-23  5:27 Alexandre Oliva
2022-12-23  7:31 Alexandre Oliva
2022-12-28  5:23 Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).