Landing: 1d91dbe68778

Project / Subsystem

gcc / gcc

Date

2026-05-06

Author

Richard Biener

Commit

1d91dbe68778ac2496469320d8bfcf0c3099b675

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
commit_hash
1d91dbe68778ac2496469320d8bfcf0c3099b675
source_type
github
headline
Add vector_costs::add_slp_cost grouping hook.
tldr
GCC introduces a hook for targets to correlate cost events from SLP operations, simplifying cost analysis for vectorization.
author
Richard Biener
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • vectorization
  • slp
  • cost analysis
  • optimization
discussion_id_link
bugzilla_pr
date
2026-05-06T00:00:00.000Z

GCC introduces a vector_costs::add_slp_cost hook, allowing targets to correlate multiple cost events created from a single SLP (Single Loop Prefetch) operation. This simplifies the process for targets to account for the costs associated with SLP vectorization. Targets can implement add_slp_cost to handle specific cases and fall back to the default implementation for unhandled groups, which generates add_stmt_cost events.