set hardcmp eh probs
commit33d38b431cced81e575b1d17d36cb9e43d64b02b
authorAlexandre Oliva <oliva@adacore.com>
Thu, 26 Oct 2023 06:06:09 +0000 (26 03:06 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 26 Oct 2023 06:19:29 +0000 (26 03:19 -0300)
tree365f6ba460c3dde9093fcc388de01115b37955dc
parent2f398d148a793282d11f9ab63da987728c2daf4f
set hardcmp eh probs

Set execution count of EH blocks, and probability of EH edges.

for  gcc/ChangeLog

PR tree-optimization/111520
* gimple-harden-conditionals.cc
(pass_harden_compares::execute): Set EH edge probability and
EH block execution count.

for  gcc/testsuite/ChangeLog

PR tree-optimization/111520
* g++.dg/torture/harden-comp-pr111520.cc: New.
gcc/gimple-harden-conditionals.cc
gcc/testsuite/g++.dg/torture/harden-comp-pr111520.cc [new file with mode: 0644]