Landing: 629ce1fc6396

Project / Subsystem

gcc / gcc/tree-optimization

Date

2026-08-26

Author

Richard Biener

Commit

629ce1fc63967f5b8944e32854f359833b76646f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/tree-optimization
patch_id
—
commit_hash
629ce1fc63967f5b8944e32854f359833b76646f
source_type
github
headline
Simplify vector reduction transformation function
tldr
Redundant variable removed and vector input count clarified in vectorization pass.
author
Richard Biener
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • vectorization
  • • refactor
discussion_id_link
—
bugzilla_pr
—
date
2026-08-26T00:00:00.000Z

This commit simplifies the vect_transform_reduction function within GCC’s vectorization pass as a preparation for addressing PR126998. It removes the redundant effec_reduc_ncopies variable, which was always equal to effec_ncopies, and renames vec_num to vec_in_num after computing it based on actual vector inputs for better clarity.