[PATCH v2] tree-optimization: Skip debug stmts before assigning UIDs [PR127687]

Jakub Jelinek jakub@redhat.com
Fri Oct 2 20:34:16 GMT 2026


On Fri, Oct 02, 2026 at 05:10:25PM +1000, Yongqiang Tian wrote:
> GIMPLE_DEBUG statements currently consume UIDs and are then treated as
> non-assignments, which flushes pending VEC_PERM simplify sequences.  This
> makes sequence blending depend on whether debug information is present.
> 
> Skip debug statements before assigning UIDs and processing ordinary
> statements.
> 
> Assisted-by: OpenAI Codex 5.6 Sol, co-reviewed by Claude and Yongqiang Tian.
> 
> 	PR tree-optimization/127687
> 
> gcc/ChangeLog:
> 
> 	* tree-ssa-forwprop.cc (pass_forwprop::execute): Skip debug
> 	statements before assigning UIDs.
> 
> gcc/testsuite/ChangeLog:
> 
> 	* gcc.dg/pr127687.c: New test.
> 
> Signed-off-by: Yongqiang Tian <yqtian668@gmail.com>

Committed now.  Thanks.

	Jakub



More information about the Gcc-patches mailing list