Patchwork [5/7] LHS cannot be an ADDR_EXPR.

login
register
mail settings
Submitter Sebastian Pop
Date Nov. 30, 2010, 2:50 p.m.
Message ID <1291128636-30240-6-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/73613/
State New
Headers show

Comments

Sebastian Pop - Nov. 30, 2010, 2:50 p.m.
From: spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>

2010-11-26  Sebastian Pop  <sebastian.pop@amd.com>

	* sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/graphite@167164 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog          |    4 ++++
 gcc/ChangeLog.graphite |    4 ++++
 gcc/sese.c             |    3 ---
 3 files changed, 8 insertions(+), 3 deletions(-)

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9a49897..08d4323 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@ 
 2010-11-29  Sebastian Pop  <sebastian.pop@amd.com>
 
+	* sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
+
+2010-11-29  Sebastian Pop  <sebastian.pop@amd.com>
+
 	PR middle-end/45297
 	* graphite-poly.c (new_poly_bb): Returns a poly_bb_p.  Do not take
 	the reduction bool in parameter.  Clear PBB_IS_REDUCTION.  Set GBB_PBB.
diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 4461ade..8114735 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,3 +1,7 @@ 
+2010-11-26  Sebastian Pop  <sebastian.pop@amd.com>
+
+	* sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
+
 2010-11-22  Sebastian Pop  <sebastian.pop@amd.com>
 
 	PR middle-end/45297
diff --git a/gcc/sese.c b/gcc/sese.c
index dbb0cd7..78258ce 100644
--- a/gcc/sese.c
+++ b/gcc/sese.c
@@ -551,11 +551,8 @@  rename_uses (gimple copy, htab_t rename_map, gimple_stmt_iterator *gsi_tgt,
 
       if (TREE_CODE (new_expr) == INTEGER_CST)
 	{
-	  tree lhs = gimple_assign_lhs (copy);
 	  tree rhs = gimple_assign_rhs1 (copy);
 
-	  if (TREE_CODE (lhs) == ADDR_EXPR)
-	    recompute_tree_invariant_for_addr_expr (lhs);
 	  if (TREE_CODE (rhs) == ADDR_EXPR)
 	    recompute_tree_invariant_for_addr_expr (rhs);
 	}