Landing: ea41a5efe4b4
Project / Subsystem
gcc / ranger
Date
2026-08-19
Author
Andrea Pinski
Commit
ea41a5efe4b4a715f66ebfcad35cfd3b22e94690
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ranger
- patch_id
- —
- commit_hash
- ea41a5efe4b4a715f66ebfcad35cfd3b22e94690
- source_type
- github
- headline
- ranger: Fix operator_div with VREL_LT
- tldr
- Corrects range analysis for division operations involving negative numbers.
- author
- Andrea Pinski
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • bugfix
- • range analysis
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-19T00:00:00.000Z
A bug in the ranger pass’s handling of division (operator_div) with a varying lower bound (VREL_LT) has been fixed. Previously, if the range was not explicitly set to zero, it could become undefined, leading to incorrect intersection calculations. The fix ensures that if either operand is negative, the division result is handled correctly, preventing undefined behavior and passing a new test case.