Landing: 0025ab8747c6

Project / Subsystem

gcc / tree-optimization

Date

2026-09-01

Author

Aldy Hernandez

Commit

0025ab8747c66ce47dd6705460d5e1b0b5d37d39

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
tree-optimization
patch_id
—
commit_hash
0025ab8747c66ce47dd6705460d5e1b0b5d37d39
source_type
github
headline
Add testcases for backward threading to never-executed edges.
tldr
Two new testcases ensure the backward threading optimization correctly avoids edges that are unlikely to be executed.
author
Aldy Hernandez
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • testing
  • • tree-ssa
discussion_id_link
—
bugzilla_pr
—
date
2026-09-01T00:00:00.000Z

This commit introduces two new testcases to validate the behavior of the backward threading optimization, which aims to avoid threading execution paths to edges that are probably never reached. These tests cover scenarios related to PRs 106495 and 126906. Both testcases pass with the recent optimization changes (r13-1924-gb9da686470d1c2) that implemented this edge-avoidance logic, confirming its correctness.