public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] set strub eh probs
@ 2023-10-20  3:48 Alexandre Oliva
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2023-10-20  3:48 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:29c83c9cb47ab56b08ddb06603f7726d62065501

commit 29c83c9cb47ab56b08ddb06603f7726d62065501
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Thu Oct 19 02:53:09 2023 -0300

    set strub eh probs

Diff:
---
 gcc/ipa-strub.cc | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/ipa-strub.cc b/gcc/ipa-strub.cc
index 73a8771315c3..861cd0cffa0e 100644
--- a/gcc/ipa-strub.cc
+++ b/gcc/ipa-strub.cc
@@ -2068,8 +2068,12 @@ gsi_insert_finally_seq_after_call (gimple_stmt_iterator gsi, gimple_seq seq)
   gsi_insert_before (&gsi, resx, GSI_SAME_STMT);
 
   /* Finally, wire the EH cleanup block into the CFG.  */
-  make_eh_edges (stmt);
-  add_call_edges_for_seq (seq, single_pred_edge (bb_eh_cleanup)->count ());
+  edge neeh = make_eh_edges (stmt);
+  neeh->probability = profile_probability::never ();
+  gcc_checking_assert (neeh->dest == bb_eh_cleanup);
+  gcc_checking_assert (!neeh->dest->count.initialized_p ());
+  neeh->dest->count = neeh->count ();
+  add_call_edges_for_seq (seq, neeh->dest->count);
 }
 
 /* Copy the attribute list at *ATTRS, minus any NAME attributes, leaving

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

* [gcc(refs/users/aoliva/heads/testme)] set strub eh probs
@ 2023-09-30  4:15 Alexandre Oliva
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2023-09-30  4:15 UTC (permalink / raw)
  To: gcc-cvs

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

commit 8d56ede79121d548a9831f554fa9c4d6841cd847
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Sep 29 22:35:59 2023 -0300

    set strub eh probs

Diff:
---
 gcc/ipa-strub.cc | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/ipa-strub.cc b/gcc/ipa-strub.cc
index 73a8771315c..861cd0cffa0 100644
--- a/gcc/ipa-strub.cc
+++ b/gcc/ipa-strub.cc
@@ -2068,8 +2068,12 @@ gsi_insert_finally_seq_after_call (gimple_stmt_iterator gsi, gimple_seq seq)
   gsi_insert_before (&gsi, resx, GSI_SAME_STMT);
 
   /* Finally, wire the EH cleanup block into the CFG.  */
-  make_eh_edges (stmt);
-  add_call_edges_for_seq (seq, single_pred_edge (bb_eh_cleanup)->count ());
+  edge neeh = make_eh_edges (stmt);
+  neeh->probability = profile_probability::never ();
+  gcc_checking_assert (neeh->dest == bb_eh_cleanup);
+  gcc_checking_assert (!neeh->dest->count.initialized_p ());
+  neeh->dest->count = neeh->count ();
+  add_call_edges_for_seq (seq, neeh->dest->count);
 }
 
 /* Copy the attribute list at *ATTRS, minus any NAME attributes, leaving

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

* [gcc(refs/users/aoliva/heads/testme)] set strub eh probs
@ 2023-09-30  2:30 Alexandre Oliva
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2023-09-30  2:30 UTC (permalink / raw)
  To: gcc-cvs

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

commit cbf7426f8270068b0cfd297b34217d9170fa3d66
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Sep 29 22:35:59 2023 -0300

    set strub eh probs

Diff:
---
 gcc/ipa-strub.cc | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/ipa-strub.cc b/gcc/ipa-strub.cc
index 73a8771315c..861cd0cffa0 100644
--- a/gcc/ipa-strub.cc
+++ b/gcc/ipa-strub.cc
@@ -2068,8 +2068,12 @@ gsi_insert_finally_seq_after_call (gimple_stmt_iterator gsi, gimple_seq seq)
   gsi_insert_before (&gsi, resx, GSI_SAME_STMT);
 
   /* Finally, wire the EH cleanup block into the CFG.  */
-  make_eh_edges (stmt);
-  add_call_edges_for_seq (seq, single_pred_edge (bb_eh_cleanup)->count ());
+  edge neeh = make_eh_edges (stmt);
+  neeh->probability = profile_probability::never ();
+  gcc_checking_assert (neeh->dest == bb_eh_cleanup);
+  gcc_checking_assert (!neeh->dest->count.initialized_p ());
+  neeh->dest->count = neeh->count ();
+  add_call_edges_for_seq (seq, neeh->dest->count);
 }
 
 /* Copy the attribute list at *ATTRS, minus any NAME attributes, leaving

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

* [gcc(refs/users/aoliva/heads/testme)] set strub eh probs
@ 2023-09-30  1:37 Alexandre Oliva
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2023-09-30  1:37 UTC (permalink / raw)
  To: gcc-cvs

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

commit f0edeaa8fa7972251939d6cc1a3153afbd291610
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Sep 29 22:35:59 2023 -0300

    set strub eh probs

Diff:
---
 gcc/ipa-strub.cc | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/ipa-strub.cc b/gcc/ipa-strub.cc
index 73a8771315c..d146b6aa0bc 100644
--- a/gcc/ipa-strub.cc
+++ b/gcc/ipa-strub.cc
@@ -2068,8 +2068,12 @@ gsi_insert_finally_seq_after_call (gimple_stmt_iterator gsi, gimple_seq seq)
   gsi_insert_before (&gsi, resx, GSI_SAME_STMT);
 
   /* Finally, wire the EH cleanup block into the CFG.  */
-  make_eh_edges (stmt);
-  add_call_edges_for_seq (seq, single_pred_edge (bb_eh_cleanup)->count ());
+  edge neeh = make_eh_edges (stmt);
+  neeh->probability = profile_probability::never ();
+  gcc_checking_assert (neeh->dest == bb_eh_cleanup);
+  gcc_checking_assert (!neeh->dest->count.initialized_p ()
+  neeh->dest->count = neeh->count ();
+  add_call_edges_for_seq (seq, neeh->dest->count);
 }
 
 /* Copy the attribute list at *ATTRS, minus any NAME attributes, leaving

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

end of thread, other threads:[~2023-10-20  3:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20  3:48 [gcc(refs/users/aoliva/heads/testme)] set strub eh probs Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
2023-09-30  4:15 Alexandre Oliva
2023-09-30  2:30 Alexandre Oliva
2023-09-30  1:37 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).