]> git.ipfire.org Git - thirdparty/gcc.git/commit
Enhance bitwise_and::op1_range
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 14 May 2025 15:32:58 +0000 (11:32 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Thu, 15 May 2025 17:07:34 +0000 (13:07 -0400)
commitac55655ce45a237a6a01e0cce50211841603c2ec
tree3ae4598237e4ef3777f25251cc0ea970ea28da00
parentb3327649bffd32af962662dce054b94be2d7330d
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.
gcc/range-op.cc
gcc/testsuite/gcc.dg/pr116546.c [new file with mode: 0644]