http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58041
--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> --- I believe that you need to set alignment of the type of MEM_REFs you create in replace_ref along the lines it is done in build_ref_for_offset in tree-sra.c. I wonder whether STRICT_ALIGNMENT has really any meaning nowadays, given that for example x86_64 is not a strict-alignment platform except for SSE vectors.