[Bug tree-optimization/122847] [16 Regression] ICE non-trivial conversion in ‘ssa_name’
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 26 02:34:56 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122847
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:
https://gcc.gnu.org/g:e75a9e33b97cfdcc76b6bfea3e7ca6184be5d5c0
commit r16-5607-ge75a9e33b97cfdcc76b6bfea3e7ca6184be5d5c0
Author: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Date: Tue Nov 25 14:19:18 2025 -0800
phiprop: Make sure types of the load match the inserted phi [PR122847]
This was introduced with r16-5556-ge94e91d6f3775, but the type
check for the delay was not happen because the type at the point
of delaying was set to NULL. It is only until a non-delayed load
when the phi is created, the type is set.
This adds the type check to the replacement for the delayed statements.
Pushed as obvious.
PR tree-optimization/122847
gcc/ChangeLog:
* tree-ssa-phiprop.cc (propagate_with_phi): Add type
check for reuse of the phi for the delayed statements.
gcc/testsuite/ChangeLog:
* gcc.dg/torture/pr122847-1.c: New test.
Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
More information about the Gcc-bugs
mailing list