Landing: 5672440bf74c

Project / Subsystem

gcc / backthreader

Date

2026-09-08

Author

Aldy Hernandez

Commit

5672440bf74cfa827e67382350ab7e00d9b2e70a

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
backthreader
patch_id
—
commit_hash
5672440bf74cfa827e67382350ab7e00d9b2e70a
source_type
github
headline
Backthreader refactors candidate work out of adjust_paths_after_duplication.
tldr
Refactors backthreader code to separate candidate finding from adjustment, improving clarity and removing spaghetti code.
author
Aldy Hernandez
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • refactor
  • • readability
discussion_id_link
—
bugzilla_pr
—
date
2026-09-08T00:00:00.000Z

This commit restructures the adjust_paths_after_duplication function in the backthreader to separate the process of finding candidate paths from the process of adjusting them. The per-candidate work is moved into a new adjust_one_path function, simplifying the control flow, removing the use of goto, and making the logic for rewiring candidates clearer.