Landing: 600e25ecc075

Project / Subsystem

gcc / gcc/tree-optimization

Date

2026-08-26

Author

Richard Biener

Commit

600e25ecc075c82be09240255567180fc2849fb8

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc/tree-optimization
patch_id
—
commit_hash
600e25ecc075c82be09240255567180fc2849fb8
source_type
github
headline
Refactor vector reduction loop update logic
tldr
Code refactoring in vectorization pass simplifies handling of reduction operations and loop bounds.
author
Richard Biener
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • vectorization
discussion_id_link
—
bugzilla_pr
—
date
2026-08-26T00:00:00.000Z

This commit refactors the vect_reduction_update_partial_vector_usage function in the GCC vectorization pass. The changes defer the recording of loop length and mask to the caller, making the logic easier to reason about and paving the way for future bug fixes (PR126998). The related vect_transform_reduction function is also simplified by removing redundant variables and clarifying vector input calculations.