https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96779
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <l...@gcc.gnu.org>: https://gcc.gnu.org/g:e888bea2384a0d8d29a6545c4f57f41cb49df0a6 commit r12-5458-ge888bea2384a0d8d29a6545c4f57f41cb49df0a6 Author: Navid Rahimi <navidrah...@microsoft.com> Date: Mon Nov 22 19:46:17 2021 -0500 Re: [PATCH] PR tree-optimization/96779 Adding a missing pattern to match.pd PR tree-optimization/96779 gcc/ * match.pd (-x == x) -> (x == 0): New optimization. gcc/testsuite * gcc.dg/tree-ssa/pr96779.c: Testcase for this optimization. * gcc.dg/tree-ssa/pr96779-disabled.c: Testcase for this optimization when -fwrapv passed.