Landing: c43fed44d9ac
Project / Subsystem
gcc / gcc/phiopt
Date
2026-06-04
Author
Andrew Pinski
Commit
c43fed44d9ac34ce88b261cbc0da65e5d3db7132
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/phiopt
- patch_id
- —
- commit_hash
- c43fed44d9ac34ce88b261cbc0da65e5d3db7132
- source_type
- github
- headline
- Phiopt now factors out more than single-operand operations
- tldr
- The phiopt pass in GCC has been enhanced to factor out operations with more than two operands, improving code optimization.
- author
- Andrew Pinski
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • gimple
- • phiopt
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-04T00:00:00.000Z
The phiopt pass in GCC, responsible for optimizing conditional code, now supports factoring out operations that involve more than just a single operand. This expansion builds upon existing ifcvt functionality and allows for broader optimization opportunities. Specific cases, such as certain pointer arithmetic and complex expressions, are strategically excluded to avoid profitability issues or correctness problems like lost uninitialization warnings.