https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114969
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Daniel Barboza <[email protected]>: https://gcc.gnu.org/g:7b2e9d01d325f091ab7615985f413dda78415fec commit r16-7367-g7b2e9d01d325f091ab7615985f413dda78415fec Author: Daniel Barboza <[email protected]> Date: Fri Jan 23 13:10:30 2026 -0300 match.pd: (A | (convert?)(A != 0)) EQ|NE 0 -> A EQ|NE 0 [PR114969] The NE variant is a gimple pattern that comes from the following C++ code: bool result = (std::max( (unsigned long long) 0, (unsigned long long) var_0)) | ( var_0 ? 1 : 0); PR tree-optimization/114969 gcc/ChangeLog: * match.pd (`(A | (convert?)(A != 0)) EQ|NE 0`): New pattern. gcc/testsuite/ChangeLog: * g++.dg/pr114969.C: New test.
