]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use gimple_build to perform conversion simplification
authorRichard Biener <rguenther@suse.de>
Fri, 10 Oct 2025 08:05:46 +0000 (10:05 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 10 Oct 2025 09:25:02 +0000 (11:25 +0200)
commite520fe08031a4f16e5a7933b4a5fada00413fc6c
tree493fbfdc9638a122a8c527f22596d10e7f4000b0
parent53085a46e7f16245abbe23b8c36d641cc04947ca
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.
gcc/testsuite/gcc.target/arm/pr122111.c [new file with mode: 0644]
gcc/tree-ssa-math-opts.cc