https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115238
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:c5a7628470a7fb801ebeea82e16a4549db43bfa5 commit r15-853-gc5a7628470a7fb801ebeea82e16a4549db43bfa5 Author: Andrew Pinski <quic_apin...@quicinc.com> Date: Sun May 26 17:59:21 2024 -0700 match: Use uniform_integer_cst_p in bitwise_inverted_equal_p [PR115238] I noticed while working on the `a ^ CST` patch, that bitwise_inverted_equal_p would check INTEGER_CST directly and not handle vector csts that are uniform. This moves over to using uniform_integer_cst_p instead of checking INTEGER_CST directly. Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR tree-optimization/115238 gcc/ChangeLog: * generic-match-head.cc (bitwise_inverted_equal_p): Use uniform_integer_cst_p instead of checking INTEGER_CST. * gimple-match-head.cc (gimple_bitwise_inverted_equal_p): Likewise. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/bitops-9.c: New test. Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>