[Bug rtl-optimization/122272] extra move in some cases; missed optimizations in classic "gcd" implementation

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 13 22:56:56 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122272

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=106688

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
99% sure this is a dup of bug 106688. The number of extra moves is fixed with
-fno-tree-coalesce-vars even.

Basically out of ssa sometimes with coalescing turned on will chose the wrong
coalescing and that causes extra moves for returns.


More information about the Gcc-bugs mailing list