Skip to content

Commit a84deb8

Browse files
author
vries
committed
Handle addr_expr and component_ref in graphite-ast-to-ast
2016-03-02 Tom de Vries <[email protected]> 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
1 parent 6bc7872 commit a84deb8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

gcc/ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2016-03-02 Tom de Vries <[email protected]>
2+
3+
PR tree-optimization/68659
4+
* graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
5+
new_expr == NULL_TREE.
6+
(get_new_name): Handle ADDR_EXPR.
7+
18
2016-03-02 Bin Cheng <[email protected]>
29

310
PR rtl-optimization/69052

gcc/graphite-isl-ast-to-gimple.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,8 @@ gsi_insert_earliest (gimple_seq seq)
14031403
void translate_isl_ast_to_gimple::
14041404
collect_all_ssa_names (tree new_expr, vec<tree> *vec_ssa)
14051405
{
1406+
if (new_expr == NULL_TREE)
1407+
return;
14061408

14071409
/* Rename all uses in new_expr. */
14081410
if (TREE_CODE (new_expr) == SSA_NAME)
@@ -1801,7 +1803,7 @@ get_new_name (basic_block new_bb, tree op,
18011803
basic_block old_bb, phi_node_kind phi_kind) const
18021804
{
18031805
/* For constants the names are the same. */
1804-
if (is_constant (op))
1806+
if (TREE_CODE (op) != SSA_NAME)
18051807
return op;
18061808

18071809
return get_rename (new_bb, op, old_bb, phi_kind);

0 commit comments

Comments
 (0)