From: Aditya Kumar Date: Mon, 24 Aug 2015 20:50:12 +0000 (+0000) Subject: Constrain only on INTEGER_TYPE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ead801e4deaf9e460b1226ec5f07710e8cb6078;p=gcc.git Constrain only on INTEGER_TYPE 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 * graphite-scop-detection.c (stmt_simple_for_scop_p): Constrain only on INTEGER_TYPE From-SVN: r227150 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99943fa993b..0f88b730a90 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-08-24 Aditya Kumar + + * graphite-scop-detection.c (stmt_simple_for_scop_p): + Constrain only on INTEGER_TYPE. + 2015-08-24 Michael Meissner PR target/67211 diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c index b2a4aafdaa0..dbd98428265 100644 --- a/gcc/graphite-scop-detection.c +++ b/gcc/graphite-scop-detection.c @@ -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)) {