[gcc(refs/users/aoliva/heads/testme)] set strub eh probs
Alexandre Oliva
aoliva@gcc.gnu.org
Sat Sep 30 04:15:22 GMT 2023
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
More information about the Gcc-cvs
mailing list