https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101822
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Last reconfirmed| |2021-08-08
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Severity|normal |enhancement
CC| |pinskia at gcc dot gnu.org
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
MIne, phiopt is not working for this case:
if (n_4(D) != 0)
goto <bb 3>; [89.00%]
else
goto <bb 4>; [11.00%]
<bb 3> [local count: 105119324]:
_9 = __builtin_popcount (n_4(D));
count_13 = (uint32_t) _9;
<bb 4> [local count: 118111600]:
# count_12 = PHI <count_13(3), 0(2)>
The code in phiopt for handling casts is not done correctly.