Landing: 39d0d18f9dd5

Project / Subsystem

gcc / ifcvt

Date

2026-07-22

Author

Kyrylo Tkachov

Commit

39d0d18f9dd5ad82b2a885a9ecee47199e2fffc7

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ifcvt
patch_id
—
commit_hash
39d0d18f9dd5ad82b2a885a9ecee47199e2fffc7
source_type
github
headline
ifcvt: Share common success path in branchless matchers
tldr
ifcvt: Consolidates duplicated code for successfully applied if-conversion matchers.
author
Kyrylo Tkachov
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • refactor
  • • optimization
  • • ifcvt
  • • code-duplication
discussion_id_link
—
bugzilla_pr
—
date
2026-07-22T00:00:00.000Z

Several branchless matchers in GCC’s ifcvt pass shared identical code for winding up, validating, and emitting the transformed sequence. This commit extracts this common logic into a new function, noce_commit_sequence. This reduces code duplication and improves maintainability without altering the optimization’s behavior.