This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]