Constrain only on INTEGER_TYPE
authorAditya Kumar <aditya.k7@samsung.com>
Mon, 24 Aug 2015 20:50:12 +0000 (20:50 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Mon, 24 Aug 2015 20:50:12 +0000 (20:50 +0000)
Passes bootstrap, no regressions.

With this patch gcc bootstraps with graphite.
make BOOT_CFLAGS="-g -O2 -fgraphite-identity -floop-interchange -floop-block"

gcc/ChangeLog:

2015-08-12  Aditya Kumar  <hiraditya@msn.com>

        * graphite-scop-detection.c (stmt_simple_for_scop_p):
Constrain only on INTEGER_TYPE

From-SVN: r227150

gcc/ChangeLog
gcc/graphite-scop-detection.c

index 99943fa993b6010084581e2d0d1ce0bc5d3f4445..0f88b730a90f7b821dc45d9816836d2ede23a007 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
+
+       * graphite-scop-detection.c (stmt_simple_for_scop_p):
+       Constrain only on INTEGER_TYPE.
+
 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        PR target/67211
index b2a4aafdaa00fa615ff1482d522739cb9bd769f8..dbd98428265cbd5240a04d403b252453e859142f 100644 (file)
@@ -409,8 +409,8 @@ stmt_simple_for_scop_p (basic_block scop_entry, loop_p outermost_loop,
          {
            tree op = gimple_op (stmt, i);
            if (!graphite_can_represent_expr (scop_entry, loop, op)
-               /* We can not handle REAL_TYPE. Failed for pr39260.  */
-               || TREE_CODE (TREE_TYPE (op)) == REAL_TYPE)
+               /* We can only constrain on integer type.  */
+               || (TREE_CODE (TREE_TYPE (op)) != INTEGER_TYPE))
              {
                if (dump_file && (dump_flags & TDF_DETAILS))
                  {