https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86209
--- Comment #5 from sameerad at gcc dot gnu.org --- The gimple store merging pass performs load/store merging only if the LHS is memory or constant. I am also working on the GIMPLE pass which will enhance this to merge other stores as well. However, wanted to do the performance measurement, that is why using the peephole2 pass.