Landing: 0d77594ded5a
Project / Subsystem
gcc / gcc/ifcvt
Date
2026-09-06
Author
Kyrylo Tkachov
Commit
0d77594ded5a855dd9884a344028167f35c5899d
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/ifcvt
- patch_id
- —
- commit_hash
- 0d77594ded5a855dd9884a344028167f35c5899d
- source_type
- github
- headline
- Remove dead null-target tests in cond_arith.
- tldr
- ifcvt: Dead null-target tests removed from noce_try_cond_arith, improving clarity and correctness.
- author
- Kyrylo Tkachov
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cleanup
- • ifcvt
- • compiler internals
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-06T00:00:00.000Z
Dead tests for a null TARGET have been removed from noce_try_cond_arith within the ifcvt pass. After a subregister fallback mechanism, all paths in this function are guaranteed to have a conditional move, making subsequent checks for a null TARGET redundant. One of these redundant tests incorrectly suggested that both candidates could fail, which has also been corrected by stating the invariant with an assertion. This change is a code cleanup with no functional impact.