This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/86209] Peephole does not happen because the type of zero/sign extended operands is not the same.
- From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Jun 2018 11:10:17 +0000
- Subject: [Bug target/86209] Peephole does not happen because the type of zero/sign extended operands is not the same.
- Auto-submitted: auto-generated
- References: <bug-86209-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86209
--- Comment #11 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to sameerad from comment #10)
> > 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.
In a way, this is just a form of SLP.