https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65289
--- Comment #1 from Matt Hargett <matt at use dot net> --- Also reproducible with -O2 -fgraphite-identity . I use both of these optimizations regularly to help get the most out of prefetch on the embedded ARM targets I work on.