Landing: c25dbfc56075

Project / Subsystem

gcc / tree-optimization

Date

2026-09-01

Author

Aldy Hernandez

Commit

c25dbfc56075ffb8fbe8e1437e15266b9082bbd7

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
tree-optimization
patch_id
—
commit_hash
c25dbfc56075ffb8fbe8e1437e15266b9082bbd7
source_type
github
headline
Add testcase for backward threading from never-executed entry edges.
tldr
A new testcase verifies that the backward threader correctly rejects paths with never-executed entry edges.
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 adds a testcase to verify that the backward threader in the tree-ssa optimization pass correctly identifies and rejects paths whose entry edge is likely never executed. This behavior was introduced in a previous change (r13-1891-g49ba4fdeb648c1) but lacked a corresponding test, potentially leading to regressions. The new test ensures this optimization remains effective.