diff options
| author | Jørgen Kvalsvik <j@lambda.is> | 2026-01-28 20:33:21 +0100 |
|---|---|---|
| committer | Jørgen Kvalsvik <j@lambda.is> | 2026-01-30 11:20:58 +0100 |
| commit | 340c45dc16a0a75a477192a2baaf28235be7f520 (patch) | |
| tree | 6af43d9c50dcb50998e9dee7200be4f86632572b /libjava/gnu/java | |
| parent | 5380be91759731d8fc4a8d5728b672aacbdb2173 (diff) | |
| download | gcc-340c45dc16a0a75a477192a2baaf28235be7f520.zip gcc-340c45dc16a0a75a477192a2baaf28235be7f520.tar.gz gcc-340c45dc16a0a75a477192a2baaf28235be7f520.tar.bz2 | |
Permit const counters in flush_on_edges [PR123855]
Relax the (accidental) requirement and permit that function-local
counters don't have SSA names. We really only look up the def
statement to check if it is a phi node, in which case we need to
resolve the counter from there. This obviously doesn't apply when it
is a constant.
PR gcov-profile/123855
gcc/ChangeLog:
* path-coverage.cc (flush_on_edges): Only look up SSA name def
stmt when counter is non-const.
gcc/testsuite/ChangeLog:
* gcc.misc-tests/gcov-pr123855.c: New test.
Diffstat (limited to 'libjava/gnu/java')
0 files changed, 0 insertions, 0 deletions
