2016-03-02 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/68659
* graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
new_expr == NULL_TREE.
(get_new_name): Handle ADDR_EXPR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233909
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-03-02 Tom de Vries <tom@codesourcery.com>
+
+ PR tree-optimization/68659
+ * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
+ new_expr == NULL_TREE.
+ (get_new_name): Handle ADDR_EXPR.
+
2016-03-02 Bin Cheng <bin.cheng@arm.com>
PR rtl-optimization/69052
void translate_isl_ast_to_gimple::
collect_all_ssa_names (tree new_expr, vec<tree> *vec_ssa)
{
+ if (new_expr == NULL_TREE)
+ return;
/* Rename all uses in new_expr. */
if (TREE_CODE (new_expr) == SSA_NAME)
basic_block old_bb, phi_node_kind phi_kind) const
{
/* For constants the names are the same. */
- if (is_constant (op))
+ if (TREE_CODE (op) != SSA_NAME)
return op;
return get_rename (new_bb, op, old_bb, phi_kind);