Landing: c152cee29654
Project / Subsystem
gcc / gcc/tree-optimization
Date
2026-08-27
Author
Andrew MacLeod
Commit
c152cee29654b3008f20e2247251a980b40114e9
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/tree-optimization
- patch_id
- —
- commit_hash
- c152cee29654b3008f20e2247251a980b40114e9
- source_type
- github
- headline
- Handle differing signs in MOD range operations.
- tldr
- Range analysis now correctly handles MOD operations with differing signs.
- author
- Andrew MacLeod
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • gcc
- • range analysis
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-27T00:00:00.000Z
The range analysis optimization pass has been improved to correctly handle modulo operations involving operands with different signs. A new helper function, same_quotient, was introduced to manage this, and it’s now used within the wi_fold function.