https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100363
Linus Torvalds <torva...@linux-foundation.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |torvalds@linux-foundation.o | |rg --- Comment #4 from Linus Torvalds <torva...@linux-foundation.org> --- (In reply to Andrew Pinski from comment #1) > The loop gets vectorized, I don't see the problem really. See https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/issues/372 and in particular the comment "In the first 8-byte copy, src and dst overlap" so apparently gcc has decided that they can't overlap, despite the two pointers being literally generated from the same base pointer. But I don't real arc assembly, so I'll have to take Vineet's word for it. Vineet, have you been able to generate a smaller test-case?