Patchwork [16/44] Fix PR45229: gcc.c-torture/execute/20000412-4.c ICEs with -fgraphite-identity.

login
register
mail settings
Submitter Sebastian Pop
Date Sept. 30, 2010, 6:01 p.m.
Message ID <1285869696-10915-17-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/66203/
State New
Headers show

Comments

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

2010-08-17  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/45229
	* graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
	handle GIMPLE_CALLs with no LHS.

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

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b90eae7..553ca9e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@ 
+2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
+
+	PR middle-end/45229
+	* graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
+	handle GIMPLE_CALLs with no LHS.
+
 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
 
 	* graphite-poly.c (init_graphite_out_file): New.
diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 3d86952..2378046 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,3 +1,9 @@ 
+2010-08-17  Sebastian Pop  <sebastian.pop@amd.com>
+
+	PR middle-end/45229
+	* graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
+	handle GIMPLE_CALLs with no LHS.
+
 2010-08-17  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
 	    Sebastian Pop  <sebastian.pop@amd.com>
 
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c
index 0fd6120..09abd50 100644
--- a/gcc/graphite-sese-to-poly.c
+++ b/gcc/graphite-sese-to-poly.c
@@ -2465,7 +2465,8 @@  rewrite_cross_bb_scalar_deps (sese region, gimple_stmt_iterator *gsi)
       return false;
     }
 
-  if (!is_gimple_reg (def))
+  if (!def
+      || !is_gimple_reg (def))
     return false;
 
   if (scev_analyzable_p (def, region))