Landing: c40715a34827

Project / Subsystem

gcc / gcc/ifcvt

Date

2026-09-06

Author

Kyrylo Tkachov

Commit

c40715a3482776162a92756adf24538a800d5b00

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/ifcvt
patch_id
—
commit_hash
c40715a3482776162a92756adf24538a800d5b00
source_type
github
headline
Factor common code in if-case checking.
tldr
ifcvt: Precondition check for if-case is factored into a new helper function.
author
Kyrylo Tkachov
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • refactor
  • • ifcvt
  • • compiler internals
discussion_id_link
—
bugzilla_pr
—
date
2026-09-06T00:00:00.000Z

The ifcvt (if conversion) pass now factors its common precondition checking code into a new helper function, if_case_blocks_ok_p. This function consolidates the twenty-two lines of code previously duplicated in find_if_case_1 and find_if_case_2, which checked hot/cold partitioning and terminal conditional jumps. This change is a code refactoring with no functional impact.