]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix gamess: the only constant phi nodes with one argument are is_gimple_min_invariant...
authorSebastian Pop <sebastian.pop@amd.com>
Wed, 11 Aug 2010 20:31:14 +0000 (20:31 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 11 Aug 2010 20:31:14 +0000 (20:31 +0000)
2010-07-28  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
constant phi nodes with one argument are is_gimple_min_invariant
and SSA_NAME_IS_DEFAULT_DEF.

* gfortran.dg/graphite/id-22.f: New.

From-SVN: r163168

gcc/ChangeLog
gcc/ChangeLog.graphite
gcc/graphite-sese-to-poly.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/graphite/id-22.f [new file with mode: 0644]

index cf92a9466300e366b996b63e0ccccf049be7dc46..ffd36c30e758549d276211fa363815db4ddbecee 100644 (file)
@@ -1,3 +1,9 @@
+2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
+       constant phi nodes with one argument are is_gimple_min_invariant
+       and SSA_NAME_IS_DEFAULT_DEF.
+
 2010-08-02  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
 
        * graphite-cloog-util.c (oppose_constraint):
index fe58ec09a93fe63b9454a7f1a088a1caab26e7b6..1d3e64d2b6881987ee5be40fd41f6806b4ecab2d 100644 (file)
@@ -1,3 +1,11 @@
+2010-07-28  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
+       constant phi nodes with one argument are is_gimple_min_invariant
+       and SSA_NAME_IS_DEFAULT_DEF.
+
+       * gfortran.dg/graphite/id-22.f: New.
+
 2010-07-27  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
 
        * graphite.c (graphite_initialize): Do not initialize
index 44c658807c6627b39ce77eed81668788859b804b..38e408c753b68017b0670898e0b734c6410b190a 100644 (file)
@@ -2240,10 +2240,9 @@ rewrite_close_phi_out_of_ssa (gimple_stmt_iterator *psi, sese region)
   gcc_assert (gimple_phi_num_args (phi) == 1);
 
   /* The phi node can be a non close phi node, when its argument is
-     invariant, or when it is defined in the same loop as the phi node.  */
+     invariant, or a default definition.  */
   if (is_gimple_min_invariant (arg)
-      || SSA_NAME_IS_DEFAULT_DEF (arg)
-      || gimple_bb (SSA_NAME_DEF_STMT (arg))->loop_father == bb->loop_father)
+      || SSA_NAME_IS_DEFAULT_DEF (arg))
     {
       propagate_expr_outside_region (res, arg, region);
       gsi_next (psi);
index 4697e6be6249456cf2c3f3289692d7c97dfd01d7..ab450f2832031af67e86fa0e13d30ed48540b7c8 100644 (file)
@@ -1,3 +1,7 @@
+2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * gfortran.dg/graphite/id-22.f: New.
+
 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
 
        * gcc.dg/graphite/id-26.c: New.
diff --git a/gcc/testsuite/gfortran.dg/graphite/id-22.f b/gcc/testsuite/gfortran.dg/graphite/id-22.f
new file mode 100644 (file)
index 0000000..4b943f1
--- /dev/null
@@ -0,0 +1,10 @@
+! { dg-options "-O3 -ffast-math" }
+
+      COMMON /NONEQ / UNZOR
+      DO ITS = 1, NTS
+        DO JATOM = 1, NAT
+          IF(IEF.EQ.5.OR.IEF.EQ.8)
+     *       UNZOR = UNZOR + 8
+        ENDDO
+      ENDDO
+      END