[Bug target/86209] Peephole does not happen because the type of zero/sign extended operands is not the same.

sameerad at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 27 07:48:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86209

--- Comment #10 from sameerad at gcc dot gnu.org ---
> subus:
>    ldr   w0, [w0]
>    add   w0, w0, w0, lsr #16
>    uxth   w0, w0
>    ret

This is interesting way in which load store combining can be enhanced further.
I will try to figure out if this can be integrated in my current
implementation.

Thanks Richard.


More information about the Gcc-bugs mailing list