aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphite.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-09-21 12:02:58 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-09-21 12:02:58 +0000
commit73d1c65029e56f95bfb3d83e2bb9a403f3f69de4 (patch)
tree950b14ee9c3396c1eee5799efd04a0c6584059fb /gcc/graphite.c
parenta708f4b67038ff12800a3874722374a66624e2a0 (diff)
downloadgcc-73d1c65029e56f95bfb3d83e2bb9a403f3f69de4.zip
gcc-73d1c65029e56f95bfb3d83e2bb9a403f3f69de4.tar.gz
gcc-73d1c65029e56f95bfb3d83e2bb9a403f3f69de4.tar.bz2
graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Restore valid IL after code generation errors.
2017-09-21 Richard Biener <rguenther@suse.de> * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Restore valid IL after code generation errors. * graphite.c (graphite_transform_loops): Diagnose code generation issues as MSG_MISSED_OPTIMIZATION and continue with processing SCOPs. From-SVN: r253060
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r--gcc/graphite.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c
index af336da..d8777f0 100644
--- a/gcc/graphite.c
+++ b/gcc/graphite.c
@@ -337,17 +337,16 @@ graphite_transform_loops (void)
if (!apply_poly_transforms (scop))
continue;
+ location_t loc = find_loop_location
+ (scops[i]->scop_info->region.entry->dest->loop_father);
+
need_cfg_cleanup_p = true;
- /* When code generation is not successful, do not continue
- generating code for the next scops: the IR has to be cleaned up
- and could be in an inconsistent state. */
if (!graphite_regenerate_ast_isl (scop))
- break;
-
- location_t loc = find_loop_location
- (scop->scop_info->region.entry->dest->loop_father);
- dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loc,
- "loop nest optimized\n");
+ dump_printf_loc (MSG_MISSED_OPTIMIZATION, loc,
+ "loop nest not optimized, code generation error\n");
+ else
+ dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loc,
+ "loop nest optimized\n");
}
free_scops (scops);