Landing: 977fd87bade4

Project / Subsystem

gcc / gcc

Date

2026-08-07

Author

Andrew MacLeod

Commit

977fd87bade47e7624d803ba0cc549d819c03fe1

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
977fd87bade47e7624d803ba0cc549d819c03fe1
source_type
github
headline
Allow range invert to fail.
tldr
Range inversion in GCC now returns a boolean to indicate success or failure, improving robustness.
author
Andrew MacLeod
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • compiler
  • • optimization
  • • refactor
discussion_id_link
—
bugzilla_pr
—
date
2026-08-07T00:00:00.000Z

The invert() function for value ranges in GCC now returns a boolean to signal whether the inversion was successful or not. This change handles cases where a range cannot be represented after inversion, preventing potential issues in subsequent optimizations and adding new test cases to verify this behavior.