Landing: b7c69e8f540c

Project / Subsystem

gcc / gcc/tree-vect-loop

Date

2026-05-01

Author

Jakub Jelinek

Commit

b7c69e8f540ccd41b0368cd5fe650b4aef3758eb

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/tree-vect-loop
patch_id
commit_hash
b7c69e8f540ccd41b0368cd5fe650b4aef3758eb
source_type
github
headline
Remove redundant condition in tree-vect-loop.cc
tldr
This removes a pointless `&& 1` condition in the `vectorizable_reduction` function, cleaning up the code.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • loop vectorization
  • code cleanup
  • optimization
discussion_id_link
bugzilla_pr
date
2026-05-01T00:00:00.000Z

A previous change replaced a condition with && 1 in the vectorizable_reduction function, which served no purpose. This commit removes the redundant && 1, simplifying the code and improving readability. This has no functional impact.