Landing: 78280307c78e

Project / Subsystem

gcc / scev/niter

Date

2026-02-10

Author

Andrew Pinski

Commit

78280307c78ead38264933c2b524b7e38674cf54

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
scev/niter
patch_id
commit_hash
78280307c78ead38264933c2b524b7e38674cf54
source_type
github
headline
scev/niter: Use INTEGRAL_NB_TYPE_P instead of direct comparison to INTEGER_TYPE
tldr
GCC's loop analysis now uses a more robust check for integer types, improving compatibility with extended integer types.
author
Andrew Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • loop analysis
  • integer types
  • scev
discussion_id_link
github:gcc-mirror/gcc#124052
bugzilla_pr
date
2026-02-10T00:00:00.000Z

GCC’s loop analysis now uses INTEGRAL_NB_TYPE_P to identify integer types instead of directly comparing against INTEGER_TYPE. This allows the compiler to correctly handle extended integer types (like bitint) during loop optimization. Using the proper macro ensures correct loop analysis and optimization, fixing a latent bug and improving code generation for loops using these types.