]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Also handle GIMPLE_CALLs in rewrite_cross_bb_scalar_deps.
authorSebastian Pop <sebastian.pop@amd.com>
Wed, 11 Aug 2010 20:27:35 +0000 (20:27 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 11 Aug 2010 20:27:35 +0000 (20:27 +0000)
2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
handle GIMPLE_CALL.

From-SVN: r163141

gcc/ChangeLog
gcc/ChangeLog.graphite
gcc/graphite-sese-to-poly.c

index 3a903947706f866c6169c486f91e791e1d7862b6..e37027ff1aea6f9fd8f7c43bd943910e6d7e1dde 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
+       handle GIMPLE_CALL.
+
 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
 
        * tree-chrec.c (chrec_apply): Should only apply to the specified
index c46bd703214ee9586ac507138eb826eaae3c5259..e26a1b30d2cfef7eed0376213087e7c54ed656c3 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
+       handle GIMPLE_CALL.
+
 2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
 
        * tree-chrec.c (chrec_apply): Should only apply to the specified
index b9bf2844a21ac9fbe957f10822f553147943ea81..7c47a804e86b8de8fbc5e49fc4988cc8cc8556bc 100644 (file)
@@ -2405,10 +2405,20 @@ rewrite_cross_bb_scalar_deps (sese region, gimple_stmt_iterator *gsi)
   tree zero_dim_array = NULL_TREE;
   gimple use_stmt;
 
-  if (gimple_code (stmt) != GIMPLE_ASSIGN)
-    return;
+  switch (gimple_code (stmt))
+    {
+    case GIMPLE_ASSIGN:
+      def = gimple_assign_lhs (stmt);
+      break;
+
+    case GIMPLE_CALL:
+      def = gimple_call_lhs (stmt);
+      break;
+
+    default:
+      return;
+    }
 
-  def = gimple_assign_lhs (stmt);
   if (!is_gimple_reg (def)
       || scev_analyzable_p (def, region))
     return;