This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][Middle-end][version 3]3rd patch of PR78809


thank you.

the patch was just committed into trunk as:

https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=262636 <https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=262636>

Qing
> On Jul 12, 2018, at 12:03 PM, Jeff Law <law@redhat.com> wrote:
> 
>> 
>> gcc/ChangeLog:
>> 
>> +2018-07-11  Qing Zhao  <qing.zhao@oracle.com>
>> +
>> +	PR middle-end/78809
>> +	* builtins.c (expand_builtin_memcmp): Inline the calls first
>> +	when result_eq is false.
>> +	(expand_builtin_strcmp): Inline the calls first.
>> +	(expand_builtin_strncmp): Likewise.
>> +	(inline_string_cmp): New routine. Expand a string compare 
>> +	call by using a sequence of char comparison.
>> +	(inline_expand_builtin_string_cmp): New routine. Inline expansion
>> +	a call to str(n)cmp/memcmp.
>> +	* doc/invoke.texi (--param builtin-string-cmp-inline-length): New option.
>> +	* params.def (BUILTIN_STRING_CMP_INLINE_LENGTH): New.
>> +
>> 
>> gcc/testsuite/ChangeLog:
>> 
>> +2018-07-11  Qing Zhao  <qing.zhao@oracle.com>
>> +
>> +	PR middle-end/78809
>> +	* gcc.dg/strcmpopt_5.c: New test.
>> +	* gcc.dg/strcmpopt_6.c: New test.
> OK
> THanks
> 
> Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]