On 4/29/19 4:47 AM, Martin Liška wrote:
> On 4/26/19 11:05 AM, Martin Liška wrote:
>> Then I'm very open to adjust that even for -Os to 'call strlen'.
> That said, I'm suggesting following updated patch.
> 
> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
> 
> Thanks,
> Martin
> 
> 
> 0001-Prefer-to-use-strlen-call-instead-of-inline-expansio.patch
> 
> From 435de2e8b88b2d9898901f2343e03102da367982 Mon Sep 17 00:00:00 2001
> From: marxin <mli...@suse.cz>
> Date: Tue, 23 Apr 2019 10:05:21 +0200
> Subject: [PATCH] Prefer to use strlen call instead of inline expansion (PR
>  target/88809).
> 
> gcc/ChangeLog:
> 
> 2019-04-23  Martin Liska  <mli...@suse.cz>
> 
>       PR target/88809
>       * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
>       With -minline-all-stringops use inline expansion using 4B loop.
>       * doc/invoke.texi: Document the change of
>       -minline-all-stringops.
> 
> gcc/testsuite/ChangeLog:
> 
> 2019-04-23  Martin Liska  <mli...@suse.cz>
> 
>       PR target/88809
>       * gcc.target/i386/pr88809.c: New test.
>       * gcc.target/i386/pr88809-2.c: New test.
OK for the trunk.

jeff

Reply via email to