On Thu, 31 Mar 2016, Hurugalawadi, Naveen wrote:

Hi,

Please find attached the patch that fixes the PR31096.
Should the optimization be extended to addition and other
operations as well?

Please review the patch and let me know if its okay?

Regression tested on X86_64.

Thanks,
Naveen

2016-03-31  Naveen H.S  <naveen.hurugalaw...@caviumnetworks.com>

       * match.pd (cmp (mult:cs @0 @1) (mult:cs @2 @1)) : New Pattern.

       * gcc.dg/pr31096.c: New testcase.

Looks like you are turning x*-1 < y*-1 into x<y? That doesn't work...

--
Marc Glisse

Reply via email to