]> gcc.gnu.org Git - gcc.git/commit
Simplify fold_single_bit_test slightly
authorAndrew Pinski <apinski@marvell.com>
Fri, 19 May 2023 18:36:39 +0000 (18:36 +0000)
committerAndrew Pinski <apinski@marvell.com>
Sat, 20 May 2023 05:04:49 +0000 (05:04 +0000)
commit9d2fdcab162365caa23e5ade92d1404737e9b600
tree9cf4e26c46df60d929298c8f3bd55b76e91abb63
parent3b537ab625ee7dac4f1d601b55b5b623d61d1119
Simplify fold_single_bit_test slightly

Now the only use of fold_single_bit_test is in do_store_flag,
we can change it such that to pass the inner arg and bitnum
instead of building a tree. There is no code generation changes
due to this change, only a decrease in GC memory that is produced
during expansion.

gcc/ChangeLog:

* expr.cc (fold_single_bit_test): Take inner and bitnum
instead of arg0 and arg1. Update the code.
(do_store_flag): Don't create a tree when calling
fold_single_bit_test instead just call it with the bitnum
and the inner tree.
gcc/expr.cc
This page took 0.056456 seconds and 5 git commands to generate.