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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2017-03-10 00:00:00         |2021-8-14
           Severity|normal                      |enhancement

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With the reduced testcase in comment #2 and -O2 -fno-tree-dce we still get:
  x.i = 1;
  if (b_3(D) != 0)
    goto <bb 3>; [0.04%]
  else
    goto <bb 4>; [99.96%]

  <bb 3> [local count: 429496]:
  bar ();
  __builtin_abort ();

  <bb 4> [local count: 1073312329]:
  bar (); [tail call]
  x ={v} {CLOBBER};

As Richi mentioned tree level DCE can figure it out for the reduced testcase
while DSE cannot.

Reply via email to