https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127549

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
An uint16 seems to be _just_ enough here, but if pix[] are uint8 then not as
the difference can then be 256, times 16*16 is 65536.

You could just demote the innermost loop accumulator, of course.

I'd like to see how ugly this is going to be, of course - note we do not have
scalar patterns for PHIs (SLP patterns for the rescue?  "Just" assign a
narrower vector type and "compensate"?)

Reply via email to