Landing: 157cf7898dbd

Project / Subsystem

gcc / gcc

Date

2026-08-18

Author

Richard Biener

Commit

157cf7898dbdd43d39b2f2a9cf4390f0338d2ad3

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
157cf7898dbdd43d39b2f2a9cf4390f0338d2ad3
source_type
github
headline
improve vect_optimize_slp_pass::containing_loop
tldr
Enhances GCC's SLP vectorizer to better identify the containing loop for VEC_PERM nodes.
author
Richard Biener
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gcc
  • • optimization
  • • vectorization
discussion_id_link
—
bugzilla_pr
—
date
2026-08-18T00:00:00.000Z

GCC’s SLP (Short-Loop-as-Parallel) vectorization pass has been improved to more accurately determine the containing loop for VEC_PERM nodes. Previously, it might fall back to the loop root node. This change now uses the region entry block to indicate the containing loop when a node lacks a representative, avoiding unnecessary fallbacks.