Landing: 67c9a2c1c7ed

Project / Subsystem

gcc / gcc/vect

Date

2026-08-12

Author

Tamar Christina

Commit

67c9a2c1c7ed4414151acef4a8e336c751959225

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc/vect
patch_id
—
commit_hash
67c9a2c1c7ed4414151acef4a8e336c751959225
source_type
github
headline
Fix virtual PHI operand updates after loop header rewrite.
tldr
Vectorizer correctly updates virtual operands on loop exit edges after header rewrites.
author
Tamar Christina
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • vectorization
  • • optimization
  • • compiler-internals
discussion_id_link
—
bugzilla_pr
—
date
2026-08-12T00:00:00.000Z

The GCC vectorizer’s loop header rewrite pass (vect_set_loop_condition_partial_vectors) now correctly handles virtual operands on the loop’s exit edge. This fix ensures that any virtual operands live across the loop exit are properly updated after the header rewrite, preventing incorrect code generation, particularly in scenarios involving early break statements.