summaryrefslogtreecommitdiff
path: root/gcc/graphite-isl-ast-to-gimple.c
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2016-03-02 15:10:34 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2016-03-02 15:10:34 +0000
commita84deb889a7fc85198e9f3f7e5d8d43d75b36dbe (patch)
treee0c66a096c908d15729a54cf3d0306a32b7c074d /gcc/graphite-isl-ast-to-gimple.c
parent6bc7872f60a61399db490ea8a39960830fb3cb06 (diff)
downloadgcc-a84deb889a7fc85198e9f3f7e5d8d43d75b36dbe.tar.gz
Handle addr_expr and component_ref in graphite-ast-to-ast
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
Diffstat (limited to 'gcc/graphite-isl-ast-to-gimple.c')
-rw-r--r--gcc/graphite-isl-ast-to-gimple.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/graphite-isl-ast-to-gimple.c b/gcc/graphite-isl-ast-to-gimple.c
index d3614e48cd8..89a41188803 100644
--- a/gcc/graphite-isl-ast-to-gimple.c
+++ b/gcc/graphite-isl-ast-to-gimple.c
@@ -1403,6 +1403,8 @@ gsi_insert_earliest (gimple_seq seq)
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)
@@ -1801,7 +1803,7 @@ get_new_name (basic_block new_bb, tree op,
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);