[PATCH] PR tree-optimization/96779 Adding a missing pattern to match.pd

Navid Rahimi navidrahimi@microsoft.com
Tue Nov 16 22:50:28 GMT 2021


Hi GCC community,

This patch will add the missed pattern described in bug 102232 [1] to the match.pd. 

Tree-optimization/96779: Adding new optimization to match.pd:

            * match.pd (-x == x) -> (x == 0): New optimization.
            * gcc.dg/tree-ssa/pr96779.c: testcase for this optimization.
            * gcc.dg/tree-ssa/pr96779-disabled.c: testcase for this optimization when -fwrapv passed.

1) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96779

Best wishes,
Navid.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tree-optimization-96779.patch
Type: application/octet-stream
Size: 4791 bytes
Desc: 0001-tree-optimization-96779.patch
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211116/ba216575/attachment.obj>


More information about the Gcc-patches mailing list