[Bug rtl-optimization/31889] compiler misses opportunity to combine multiple identical function return paths

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jul 24 22:17:13 GMT 2021


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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
>         jg      .L2             # Shouldn't these two just
>         jge     .L6             # be one "je .L6"?
> 
> Is fixed with:
> 2007-06-12  Richard Guenther  <rguenther@suse.de>
> 
>         PR tree-optimization/15353
>         PR tree-optimization/31657
>         * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
>         * timevar.def: Add TV_TREE_IFCOMBINE.
> 
> The other parts are confirmed.

Except it is no longer fixed by that.  That broke in GCC 10.


More information about the Gcc-bugs mailing list