GCC Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
gcc/testsuite

Testsuite: Add phiprop testcase that is already fixed.

A new test case for the phiprop optimization pass has been added to the GCC testsuite.

A new test case, g++.dg/tree-ssa/phiprop-1.C, has been added to the GCC testsuite for the phiprop optimization pass. The test case was extracted from fold-const.cc and was already fixed by a previous commit that removed a clobber. This new test will help ensure that the fix remains effective.

In Details

This commit adds a new test case to the GCC testsuite specifically for the phiprop pass. The test, located at g++.dg/tree-ssa/phiprop-1.C, was derived from fold-const.cc. The issue it targets was resolved by commit r16-4212-gf256a13f8aed83, which eliminated an unnecessary clobber.

For Context

This commit adds a new test case to the GCC testsuite. The testsuite is a collection of programs used to verify that the compiler is working correctly. This new test focuses on the 'phiprop' optimization, which involves propagating values through 'phi nodes' in the compiler's intermediate representation. The test ensures that a previously fixed issue in this optimization remains resolved.

Filed Under: testsuitephiproptree-ssa