]> git.ipfire.org Git - thirdparty/gcc.git/commit
remove almost all users of gimple_expr_code
authorRichard Biener <rguenther@suse.de>
Fri, 13 Nov 2020 10:33:22 +0000 (11:33 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 13 Nov 2020 10:35:01 +0000 (11:35 +0100)
commit4852c3266ec0887316b9fbbb106b8540e3e948d6
treedd05735207cada3ebd0d71d889e99d03a85c0267
parent82990836679f1972141a2f93666bd6d39323a435
remove almost all users of gimple_expr_code

This replaces the old-school gimple_expr_code with more selective
functions throughout the compiler, in all cases making the code
shorter or more clear.

2020-11-13  Richard Biener  <rguenther@suse.de>

* cfgexpand.c (gimple_assign_rhs_to_tree): Use
gimple_assign_rhs_class.
(expand_gimple_stmt_1): Likewise.
* gimplify-me.c (gimple_regimplify_operands): Use
gimple_assign_single_p.
* ipa-icf-gimple.c (func_checker::compare_gimple_assign):
Remove redundant compare.
(func_checker::compare_gimple_cond): Use gimple_cond_code.
* tree-ssa-tail-merge.c (gimple_equal_p): Likewise.
* predict.c (predict_loops): Use gimple_assign_rhs_code.
gcc/cfgexpand.c
gcc/gimplify-me.c
gcc/ipa-icf-gimple.c
gcc/predict.c
gcc/tree-ssa-tail-merge.c