https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89252
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- We're expanding from foo (struct S * x) { <bb 2> [local count: 1073741824]: *x_2(D) = array[0]; MEM[(struct S *)x_2(D) + 320B] = array[1]; not sure why we end up constant-folding the loads given 'array' cannot be elided.