Re: [PATCH] fold strings as long as the array they're stored in (PR 86428)

2018-07-09 Thread Richard Biener
On Sat, Jul 7, 2018 at 11:47 PM Martin Sebor wrote: > > While working on other string folding improvements (PR 77357) > I came across another distinct case where GCC could do better: > it doesn't consider as candidates strings that have as many > elements as the size of the array they are stored i

[PATCH] fold strings as long as the array they're stored in (PR 86428)

2018-07-07 Thread Martin Sebor
While working on other string folding improvements (PR 77357) I came across another distinct case where GCC could do better: it doesn't consider as candidates strings that have as many elements as the size of the array they are stored in, even if their length is within the bounds of the array. Fo