Landing: cef3a8a6d6de

Project / Subsystem

gcc / gcc

Date

2026-09-18

Author

Andrew MacLeod

Commit

cef3a8a6d6de57c166c09464db4d1cf3ce57fd1d

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
cef3a8a6d6de57c166c09464db4d1cf3ce57fd1d
source_type
github
headline
Optimize inferred range calculation in GIMPLE.
tldr
Improves GIMPLE's range_cache by leveraging edge calculation for inferred ranges, reducing redundant work.
author
Andrew MacLeod
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • gimple
  • • performance
discussion_id_link
—
bugzilla_pr
—
date
2026-09-18T00:00:00.000Z

This commit refactors the range_from_dom routine in GIMPLE’s range cache to be more efficient. Instead of performing separate walks for abnormal edges and inferred ranges, it now marks blocks with inferred ranges during the initial dominator tree traversal. The subsequent walk then integrates both inferred ranges and outgoing edge ranges, reducing overall computation and improving performance.