Re: [PATCH] improve strcmp folding of unequal strings (PR 90626)

2019-06-19 Thread Martin Sebor
On 6/14/19 2:03 PM, Jeff Law wrote: On 6/13/19 5:50 PM, Martin Sebor wrote: While integrating the strlen and sprintf passes and investigating optimization opportunities that it opens up I noticed a few related to a strcmp optimization implemented in GCC 9.  One is to take advantage of the fact t

Re: [PATCH] improve strcmp folding of unequal strings (PR 90626)

2019-06-14 Thread Jeff Law
On 6/13/19 5:50 PM, Martin Sebor wrote: > While integrating the strlen and sprintf passes and investigating > optimization opportunities that it opens up I noticed a few related > to a strcmp optimization implemented in GCC 9.  One is to take > advantage of the fact that a nul-terminated string of 

[PATCH] improve strcmp folding of unequal strings (PR 90626)

2019-06-13 Thread Martin Sebor
While integrating the strlen and sprintf passes and investigating optimization opportunities that it opens up I noticed a few related to a strcmp optimization implemented in GCC 9. One is to take advantage of the fact that a nul-terminated string of a known length cannot be equal to a string whos