[Bug target/86209] Peephole does not happen because the type of zero/sign extended operands is not the same.
ktkachov at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 19 10:21:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list