]> gcc.gnu.org Git - gcc.git/commit
Simplify fold_single_bit_test with respect to code
authorAndrew Pinski <apinski@marvell.com>
Fri, 19 May 2023 18:52:45 +0000 (18:52 +0000)
committerAndrew Pinski <apinski@marvell.com>
Sat, 20 May 2023 05:04:49 +0000 (05:04 +0000)
commit5c68c27f3d093da89cdeee2706a03b8e759f111b
treed027ef13c83cf616bd32969bccb72314c69a18db
parent9d2fdcab162365caa23e5ade92d1404737e9b600
Simplify fold_single_bit_test with respect to code

Since we know that fold_single_bit_test is now only passed
NE_EXPR or EQ_EXPR, we can simplify it and just use a gcc_assert
to assert that is the code that is being passed.

gcc/ChangeLog:

* expr.cc (fold_single_bit_test): Add an assert
and simplify based on code being NE_EXPR or EQ_EXPR.
gcc/expr.cc
This page took 0.059864 seconds and 5 git commands to generate.