Landing: 21c8ddd2cd2f

Project / Subsystem

gcc / gcc/tree-optimization

Date

2026-08-12

Author

Andrew MacLeod

Commit

21c8ddd2cd2f3bf64225e4523e20e795083676fb

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc/tree-optimization
patch_id
—
commit_hash
21c8ddd2cd2f3bf64225e4523e20e795083676fb
source_type
github
headline
Limit phi analyzer iterations for large bit-int types
tldr
Prevents excessive iterations in phi analysis for large integer types.
author
Andrew MacLeod
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • integer-types
  • • performance
discussion_id_link
—
bugzilla_pr
—
date
2026-08-12T00:00:00.000Z

This commit limits the number of iterations performed by the phi analyzer when simulating cyclic PHIs, specifically for large _BitInt types. The analyzer previously attempted to simulate modifiers for a number of times equal to the bit precision, which is impractical for very large types. The iteration bound is now capped at MAX_FIXED_MODE_SIZE, improving performance and preventing potential hangs.