Landing: b20f5c7760e4
Project / Subsystem
gcc / tree-optimization
Date
2026-05-12
Author
Naveen
Commit
b20f5c7760e4c5032e8f9d84145d3be7d0238029
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- tree-optimization
- patch_id
- —
- commit_hash
- b20f5c7760e4c5032e8f9d84145d3be7d0238029
- source_type
- github
- headline
- Tree-optimization: Fold SAT_ADD at GIMPLE level
- tldr
- Extends scalar SAT_ADD constant folding to recognize cases where one operand is zero.
- author
- Naveen
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • tree-optimization
- • optimization
- • gimple
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-12T00:00:00.000Z
This commit extends scalar SAT_ADD constant folding to recognize cases where one operand is zero at the GIMPLE level. By folding SAT_ADD expressions with constant operands early, it improves optimization opportunities and avoids emitting unnecessary SAT_ADD operations. This optimization can lead to more efficient code generation.