public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/88542] Optimize symmetric range check
       [not found] <bug-88542-4@http.gcc.gnu.org/bugzilla/>
@ 2021-11-17  9:23 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2021-11-17  9:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)
> not sure why that only happens in the last phiopt pass.  Ah, because
> the main phiopt pass sees the following:
> 
>   <bb 2> [local count: 1073741825]:
>   if (d_3(D) < max_4(D))
>     goto <bb 3>; [50.00%]
>   else
>     goto <bb 4>; [50.00%]
> 
>   <bb 3> [local count: 536870912]:
>   _1 = -max_4(D);
>   if (_1 < d_3(D))
>     goto <bb 5>; [50.00%]
>   else
>     goto <bb 4>; [50.00%]
> 
>   <bb 4> [local count: 805306368]:
> 
>   <bb 5> [local count: 1073741825]:
>   # iftmp.0_2 = PHI <1(3), 0(4)>

The above issue of not doing the phiopt early was solved finally by
r12-5300-gf98f373dd822b35c.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-17  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-88542-4@http.gcc.gnu.org/bugzilla/>
2021-11-17  9:23 ` [Bug tree-optimization/88542] Optimize symmetric range check pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).