Landing: 1e103e1be4d1
Project / Subsystem
gcc / ifcvt
Date
2026-09-06
Author
Kyrylo Tkachov
Commit
1e103e1be4d1d6f6cb5a9a3330f7ed30c0ba78f6
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ifcvt
- patch_id
- —
- commit_hash
- 1e103e1be4d1d6f6cb5a9a3330f7ed30c0ba78f6
- source_type
- github
- headline
- ifcvt: Factor the condition code comparison scan.
- tldr
- Refactors code in ifcvt to avoid redundant scans for condition code clobbering.
- author
- Kyrylo Tkachov
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • refactor
- • optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-06T00:00:00.000Z
The GCC ifcvt pass now factors the scan for instruction sequences that clobber the non-canonicalized condition code into a new function, noce_seq_clobbers_cc_cmp_p. Previously, noce_convert_multiple_sets_1 performed this scan twice for candidate sequences, once with and once without a specific instruction. This refactoring consolidates the logic, improving code efficiency and maintainability without functional changes.