https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116546
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>: https://gcc.gnu.org/g:ac55655ce45a237a6a01e0cce50211841603c2ec commit r16-665-gac55655ce45a237a6a01e0cce50211841603c2ec Author: Andrew MacLeod <amacl...@redhat.com> Date: Wed May 14 11:32:58 2025 -0400 Enhance bitwise_and::op1_range Any known bits from the LHS range can be used to specify known bits in the non-mask operand. PR tree-optimization/116546 gcc/ * range-op.cc (operator_bitwise_and::op1_range): Utilize bitmask from the LHS to improve op1's bitmask. gcc/testsuite/ * gcc.dg/pr116546.c: New.