[PATCH] Fold __builtin_memchr (version 3)

Martin Liška mliska@suse.cz
Wed Oct 12 13:19:00 GMT 2016


On 10/12/2016 10:35 AM, Richard Biener wrote:
> On Tue, Oct 11, 2016 at 11:38 AM, Martin Liška <mliska@suse.cz> wrote:
>> One question that comes to my mind is whether there's a possibility
>> to fully test gimple folding of all cases if some of them are already
>> eaten by generic folding?
> 
> The only way is to make GENERIC folding not trigger by pushing
> constants to temporaries.
> 
> Richard.
> 

Good idea, I've done that in the patch with tests. I made a small revision to
patch, where I utilize the new c_getstr function arguments to handle more
cases.

Patch can bootstrap on ppc64le-redhat-linux and survives regression tests
as a whole series.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Fold-__builtin_memchr-function-v4.patch
Type: text/x-patch
Size: 8884 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161012/31885d2e/attachment.bin>


More information about the Gcc-patches mailing list