https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94718
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:6b5c7ee0df6b87780f2fd6f2c5759a04e6eed1fe commit r11-36-g6b5c7ee0df6b87780f2fd6f2c5759a04e6eed1fe Author: Jakub Jelinek <ja...@redhat.com> Date: Mon May 4 11:03:32 2020 +0200 match.pd: Optimize (x < 0) != (y < 0) into (x ^ y) < 0 [PR94718] The following patch (on top of the two other PR94718 patches) performs the actual optimization requested in the PR. 2020-05-04 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/94718 * match.pd ((X < 0) != (Y < 0) into (X ^ Y) < 0): New simplification. * gcc.dg/tree-ssa/pr94718-4.c: New test. * gcc.dg/tree-ssa/pr94718-5.c: New test.