diff options
author | Richard Biener <rguenther@suse.de> | 2020-11-13 11:33:22 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-11-13 11:35:01 +0100 |
commit | 4852c3266ec0887316b9fbbb106b8540e3e948d6 (patch) | |
tree | dd05735207cada3ebd0d71d889e99d03a85c0267 /gcc/predict.c | |
parent | 82990836679f1972141a2f93666bd6d39323a435 (diff) | |
download | gcc-4852c3266ec0887316b9fbbb106b8540e3e948d6.zip gcc-4852c3266ec0887316b9fbbb106b8540e3e948d6.tar.gz gcc-4852c3266ec0887316b9fbbb106b8540e3e948d6.tar.bz2 |
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.
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 361c401..3acbb86 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -2204,7 +2204,7 @@ predict_loops (void) { gimple *call_stmt = SSA_NAME_DEF_STMT (gimple_cond_lhs (stmt)); if (gimple_code (call_stmt) == GIMPLE_ASSIGN - && gimple_expr_code (call_stmt) == NOP_EXPR + && CONVERT_EXPR_CODE_P (gimple_assign_rhs_code (call_stmt)) && TREE_CODE (gimple_assign_rhs1 (call_stmt)) == SSA_NAME) call_stmt = SSA_NAME_DEF_STMT (gimple_assign_rhs1 (call_stmt)); if (gimple_call_internal_p (call_stmt, IFN_BUILTIN_EXPECT) |