[Bug tree-optimization/95230] Failure to optimize bit-scatter pattern to and 1

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jul 13 19:57:49 GMT 2024


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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Gabriel Ravier from comment #4)
> Seems to be fixed on trunk ?

The loop is still there:
.L2:
        add     w1, w1, 1
        cmp     w1, 32
        bne     .L2

  <bb 3> [local count: 1018683651]:
  # I_34 = PHI <I_31(3), 1(2)>
  I_31 = I_34 + 1;
  if (I_31 != 32)
    goto <bb 3>; [96.81%]
  else
    goto <bb 4>; [3.19%]

  <bb 4> [local count: 32534376]:


More information about the Gcc-bugs mailing list