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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-11-23
            Summary|gcc unable to remove empty  |gcc unable to remove empty
                   |loop after loop body is     |loop after loop body is
                   |removed                     |removed after malloc/free
                   |                            |pair was removed
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The removal of the malloc/free happens late in the optimization (ccdce) but
since ccdce is not iterated enough, it does not catch the empty loop either.

Reply via email to