Landing: 6566ad965dba
Project / Subsystem
gcc / gcov
Date
2026-07-16
Author
Sebastian Huber
Commit
6566ad965dbab710ad7418021c360208f7ca3158
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcov
- patch_id
- —
- commit_hash
- 6566ad965dbab710ad7418021c360208f7ca3158
- source_type
- github
- headline
- gcov: Optimize condition coverage code generation
- tldr
- Gcov avoids generating no-op bitwise-or operations for condition coverage, reducing redundant code.
- author
- Sebastian Huber
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gcov
- • optimization
- • assembly
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-16T00:00:00.000Z
This commit optimizes gcov’s condition coverage instrumentation by preventing the generation of redundant bitwise-or operations with a zero constant operand. These operations are effectively no-ops and can lead to unnecessary code, especially when using atomic operations for profiling updates. The change ensures these redundant operations are omitted during the profile code generation phase, resulting in cleaner and potentially more efficient assembly output.