On Mon, Nov 11, 2024 at 11:39 AM Jeff Law <jeffreya...@gmail.com> wrote:
>
>
>
> On 11/11/24 4:36 AM, Eikansh Gupta wrote:
> > The pattern `a rrotate (32-b)` should be optimized to `a lrotate b`.
> > The same is also true for `a lrotate (32-b)`. It can be optimized to
> > `a rrotate b`.
> >
> > This patch adds following patterns:
> > a rrotate (32-b) -> a lrotate b
> > a lrotate (32-b) -> a rrotate b
> >
> > Bootstrapped and tested on x86_64-linux-gnu with no regressions.
> >
> >       PR tree-optimization/109906
> >
> > gcc/ChangeLog:
> >
> >       * match.pd (a rrotate (32-b) -> a lrotate b): New pattern
> >       (a lrotate (32-b) -> a rrotate b): New pattern
> >
> > gcc/testsuite/ChangeLog:
> >
> >       * gcc.dg/tree-ssa/pr109906.c: New test.
> >
> > Signed-off-by: Eikansh Gupta <quic_eikag...@quicinc.com>
> OK.

Pushed as r15-5231-g879c1619ab5a708514cbb1f3754e59f30ba29e6c .

Thanks,
Andrew

> jeff
>

Reply via email to