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

--- Comment #8 from Aldy Hernandez <aldyh at redhat dot com> ---
On Wed, Oct 13, 2021, 11:37 pinskia at gcc dot gnu.org <
gcc-bugzi...@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102703
>
> --- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> Because:
>   if (d_11 > 1)
>     goto <bb 5>; [59.00%]
>   else
>     goto <bb 4>; [41.00%]
>
>   <bb 4> [local count: 391808389]:
>
>   <bb 5> [local count: 955630225]:
>   # iftmp.1_6 = PHI <0(3), 2(4)>
>
> If the phi node was removed, the original al condition for d_11 > 1 would
> be
> remove.
>

As the IL stands, the 3->5 edge has relevant range information.  If the IL
should be different at this point, there is no way the threader can know
this.

Aldy

Reply via email to