GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
phiopt

phiopt: Fix successor check in spaceship_replacement.

Corrected successor check in phiopt's spaceship_replacement to prevent ICE.

The spaceship_replacement function in phiopt incorrectly checked the number of successors for cond2_bb instead of cond3_bb. This could lead to an out-of-bounds read and an Internal Compiler Error (ICE) when cond3_bb had only one successor. This change corrects the check to use cond3_bb, resolving the ICE and passing a new test case.

Filed Under: optimizationphioptICE fix