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
+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.
+
2018-04-30 Richard Biener <rguenther@suse.de>
PR bootstrap/85571
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;
if (chrec == NULL_TREE)
return false;
- if (CONSTANT_CLASS_P (chrec))
- return true;
return is_gimple_min_invariant (chrec);
}