Landing: 504b4763fd50

Project / Subsystem

gcc / tree-optimization

Date

2026-08-04

Author

Tamar Christina

Commit

504b4763fd5080d078f0a7fe55501b003a079206

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
tree-optimization
patch_id
—
commit_hash
504b4763fd5080d078f0a7fe55501b003a079206
source_type
github
headline
vect: Move speculative read check for inbound access
tldr
Improves vectorizer's ability to safely speculate accesses in loops with multiple data references.
author
Tamar Christina
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • vectorization
  • • optimization
  • • performance
discussion_id_link
—
bugzilla_pr
—
date
2026-08-04T00:00:00.000Z

The check for safe speculative reads when data accesses are within known bounds has been moved to a dedicated loop. Previously, this check could exit early after the first misaligned access, preventing other data references within the same loop from being marked as safe for speculation. This change ensures that all accesses are evaluated correctly, allowing for more aggressive vectorization.