This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: calloc = malloc + memset
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Marc Glisse <marc dot glisse at inria dot fr>
- Cc: Jakub Jelinek <jakub at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 23 Jun 2014 18:44:23 +0200
- Subject: Re: calloc = malloc + memset
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 02 dot 1402282337290 dot 27023 at stedding dot saclay dot inria dot fr> <CAFiYyc1Qhceic9pTM_nOL3yMC+tZ3t-jWetgNL-1E8KD4QSpCA at mail dot gmail dot com> <alpine dot DEB dot 2 dot 02 dot 1403231649440 dot 14825 at stedding dot saclay dot inria dot fr> <20140418112447 dot GB1817 at tucnak dot redhat dot com> <alpine dot DEB dot 2 dot 10 dot 1404181410410 dot 3692 at laptop-mg dot saclay dot inria dot fr> <CAFiYyc1J0-eEVTbL0uWqVdtVBSUcvRQzKWwf-=E1JBb8H+XTUQ at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1405171607030 dot 3642 at laptop-mg dot saclay dot inria dot fr> <alpine dot DEB dot 2 dot 10 dot 1406031555250 dot 4739 at stedding dot saclay dot inria dot fr> <20140623073155 dot GM31640 at tucnak dot redhat dot com> <alpine dot DEB dot 2 dot 02 dot 1406231734300 dot 3080 at stedding dot saclay dot inria dot fr> <bb8ce8f2-9604-4e40-a52b-3efdefe682b2 at email dot android dot com> <alpine dot DEB dot 2 dot 10 dot 1406231814170 dot 2057 at laptop-mg dot saclay dot inria dot fr>
On Mon, Jun 23, 2014 at 6:19 PM, Marc Glisse <marc.glisse@inria.fr> wrote:
> On Mon, 23 Jun 2014, Richard Biener wrote:
>
>> On June 23, 2014 5:51:30 PM CEST, Marc Glisse <marc.glisse@inria.fr>
>> wrote:
>>>
>>> On Mon, 23 Jun 2014, Jakub Jelinek wrote:
>>>
>>>> Ok for trunk, sorry for the delay.
>>>
>>>
>>> Thanks. Richard has moved the passes a bit since then, but I still have
>>>
>>> exactly one spot where the testsuite is ok :-) I need strlen to be
>>> after
>>> dom (for calloc.C) and before vrp (for several strlenopt-*.c). I'll
>>> commit
>>> it tomorrow if there aren't any comments on the pass placement.
>>
>>
>> But vrp does not run at -O1 - does strlenopt?
>
>
> { OPT_LEVELS_2_PLUS_SPEED_ONLY, OPT_foptimize_strlen, NULL, 1 },
> { OPT_LEVELS_2_PLUS, OPT_ftree_vrp, NULL, 1 },
>
> So that's just a missed optimization at -Os, I guess.
Ok, that's fine (not sure why we restrict all of strilenopt instead of
just those
transforms that are harmful for -Os).
Richard.
> --
> Marc Glisse