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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
           Keywords|                            |missed-optimization
   Last reconfirmed|                            |2021-06-15
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  value-numbering knows about memset but not calloc, adding calloc
support isn't hard but requires quite some boiler-plate code (there might
already be a bug about this).

Note that currently calloc() is not considered having a side-effect besides
the allocation at all (that can't really cause any issue), so we do not
consider it a possible definition of p->i.  This allows better disambiguation
at the expense of this missed optimization (which in turn is an implementation
detail missed optimization).

Reply via email to