https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122111
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:e520fe08031a4f16e5a7933b4a5fada00413fc6c commit r16-4356-ge520fe08031a4f16e5a7933b4a5fada00413fc6c Author: Richard Biener <[email protected]> Date: Fri Oct 10 10:05:46 2025 +0200 Use gimple_build to perform conversion simplification The following uses gimple_build to do the conversion simplification in build_and_insert_cast instead of duplicating it there. Conveniently when building directly into the IL all stmts are taken into account for the simplification. PR tree-optimization/122111 * tree-ssa-math-opts.cc (build_and_insert_cast): Remove conversion simplification, instead use gimple_convert. * gcc.target/arm/pr122111.c: New test.
