On 11/15/2021 7:53 PM, apinski--- via Gcc-patches wrote:
From: Andrew Pinski <apin...@marvell.com>

So while working on PR 103228 (and a few others), I noticed the testcase for PR 
94785
was failing. The problem is that the nop_convert moved from being inside the 
IOR to be
outside of it. I also noticed the patch for PR 103228 was not needed to 
reproduce the
issue either.
This patch combines the two patterns together for the abs match when using 
multiplication
and adds a few places where nop_convert are optional.

OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.

        PR tree-optimization/103245

gcc/ChangeLog:

        * match.pd: Combine the abs pattern matching using multiplication.
        Adding optional nop_convert too.

gcc/testsuite/ChangeLog:

        * gcc.dg/tree-ssa/pr103245-1.c: New test.
OK
jeff

Reply via email to