https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86209
ktkachov at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ktkachov at gcc dot gnu.org --- Comment #4 from ktkachov at gcc dot gnu.org --- I see this effect too. Note that if you want to combine two LDRHs into an LDR you will be creating an unaligned access in a lot of cases, so it may not always be profitable. Also, I think the GIMPLE store merging pass can also merge loads these days. Would be good to check why it doesn't handle this case.