On 07/16/2015 09:25 AM, Kyrill Tkachov wrote:
Hi all,

In this second patch I add the transformation mentioned in the subject
to simplify-rtx.c.
In combination with the first patch to combine, combine_simplify_rtx now
picks it up in the
testcase and does the right thing by not emitting an extra negate after
the conditional negate
operation.

Bootstrapped and tested on aarch64, arm, x86_64.

Ok for trunk?

Thanks,
Kyrill


2015-07-16  Kyrylo Tkachov <kyrylo.tkac...@arm.com>

     * simplify-rtx.c (simplify_unary_operation_1, NEG case):
     (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
OK.
jeff

Reply via email to