Landing: 7f83719c13e9

Project / Subsystem

gcc / gcc/phiopt

Date

2026-08-01

Author

Andrea Pinski

Commit

7f83719c13e9c8521a08ecba4cb8e3a6f6f48e2d

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/phiopt
patch_id
—
commit_hash
7f83719c13e9c8521a08ecba4cb8e3a6f6f48e2d
source_type
github
headline
phiopt: Reject incompatible pointer types in load factoring
tldr
phiopt pass rejects factoring loads with incompatible pointer types to avoid crashes.
author
Andrea Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • gcc
discussion_id_link
—
bugzilla_pr
—
date
2026-08-01T00:00:00.000Z

The phiopt optimization pass now rejects cases where pointer types are incompatible, such as different address spaces or function pointers. This prevents crashes that could occur when creating a phi node with such pointers. The pass could be further refined to support specific address space differences, but the current change prioritizes stability by avoiding the more complex scenarios.