Landing: f0421daae209

Project / Subsystem

gcc / vect

Date

2026-07-21

Author

Tamar Christina

Commit

f0421daae209257c46a7420401199b5f9cc3f647

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
vect
patch_id
commit_hash
f0421daae209257c46a7420401199b5f9cc3f647
source_type
github
headline
Replace SLP_TREE_SCALAR_SMTS with SLP_TREE_LANES.
tldr
Decouple SLP tree lane count from scalar statement count.
author
Tamar Christina
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • vect
  • slp
  • optimization
  • vectorization
discussion_id_link
bugzilla_pr
date
2026-07-21T00:00:00.000Z

This commit continues the effort to decouple the Short Vector (SLP) vectorization’s internal representation. It replaces uses of SLP_TREE_SCALAR_SMTS with SLP_TREE_LANES where possible when determining the number of lanes in an SLP tree. This change allows the SLP vectorizer to handle cases where the number of scalar statements within a basic block does not directly correspond to the number of vector lanes, improving its ability to vectorize more complex patterns.