Landing: a3fb4bf350d6

Project / Subsystem

gcc / aarch64

Date

2026-08-21

Author

Tamar Christina

Commit

a3fb4bf350d6b7bea7aa04efcf9c584e6a9d93df

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
aarch64
patch_id
—
commit_hash
a3fb4bf350d6b7bea7aa04efcf9c584e6a9d93df
source_type
github
headline
AArch64: Add POLY_INT_CST bounds for SVE optimizations
tldr
Enables SVE constant folding by defining bounds for vector length computations.
author
Tamar Christina
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • aarch64
  • • sve
  • • optimization
  • • performance
discussion_id_link
—
bugzilla_pr
—
date
2026-08-21T00:00:00.000Z

This patch introduces bounds for POLY_INT indeterminate constants on AArch64, specifically for Scalable Vector Extension (SVE) operations. This allows GCC to recognize that certain vector length calculations, like svcntb() and svcntw(), always produce results within known ranges. Consequently, comparisons involving these values can be folded away, simplifying code and improving optimization.