diff options
author | Richard Biener <rguenther@suse.de> | 2018-04-30 10:16:11 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2018-04-30 10:16:11 +0000 |
commit | 5885f02733f9bab7e9508bfebbeed5b3c9254aaa (patch) | |
tree | d542498fc67467f62962000329d921b7c111c4aa /gcc/tree-cfg.c | |
parent | bece35ca280ed20a8c9bb540881c79fa4bd28cff (diff) | |
download | gcc-5885f02733f9bab7e9508bfebbeed5b3c9254aaa.zip gcc-5885f02733f9bab7e9508bfebbeed5b3c9254aaa.tar.gz gcc-5885f02733f9bab7e9508bfebbeed5b3c9254aaa.tar.bz2 |
tree-chrec.h (evolution_function_is_constant_p): Remove redundant check.
2018-04-30 Richard Biener <rguenther@suse.de>
* tree-chrec.h (evolution_function_is_constant_p): Remove
redundant check.
* tree-cfg.c (tree_node_can_be_shared): Re-order checks.
From-SVN: r259756
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 8726a53..19a378a 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -5212,16 +5212,13 @@ static bool tree_node_can_be_shared (tree t) { if (IS_TYPE_OR_DECL_P (t) - || is_gimple_min_invariant (t) || TREE_CODE (t) == SSA_NAME - || t == error_mark_node - || TREE_CODE (t) == IDENTIFIER_NODE) + || TREE_CODE (t) == IDENTIFIER_NODE + || TREE_CODE (t) == CASE_LABEL_EXPR + || is_gimple_min_invariant (t)) return true; - if (TREE_CODE (t) == CASE_LABEL_EXPR) - return true; - - if (DECL_P (t)) + if (t == error_mark_node) return true; return false; |