Landing: 9a520bb987d3

Project / Subsystem

gcc / tree-optimization

Date

2026-04-30

Author

Richard Biener

Commit

9a520bb987d3944ed9bb09f29b0f38f319817759

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
tree-optimization
patch_id
commit_hash
9a520bb987d3944ed9bb09f29b0f38f319817759
source_type
github
headline
Tree-optimization/125088 - some TLC to the new vect_bb_slp_scalar_cost
tldr
The SLP vectorization cost estimation code is refactored for clarity and to avoid Coverity warnings.
author
Richard Biener
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • vectorization
  • slp
  • code quality
discussion_id_link
bugzilla_pr
date
2026-04-30T00:00:00.000Z

The vect_bb_slp_scalar_cost function, used in SLP (Superword Level Parallelism) vectorization, has been refactored to improve code clarity and avoid confusion reported by Coverity. The refactoring simplifies the control flow around cost recording and removes a do { } while (false) loop that contained continue statements. Additionally, copies involving memory accesses are now excluded from vect_nop_conversion_p.