summaryrefslogtreecommitdiff
path: root/gcc/graphite.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-10-18 14:35:26 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-10-18 14:35:26 +0000
commite33507e33c20c23d4b72687ce5129dcc4c75f0be (patch)
treebe6a92ce13525c5b2590ffb52581b59cce3f76a1 /gcc/graphite.c
parent30c4440c6ad1034e6e69fa7370659aaa9bb19912 (diff)
downloadgcc-e33507e33c20c23d4b72687ce5129dcc4c75f0be.tar.gz
re PR tree-optimization/82591 ([graphite] Compile-time hog w/ -O2 -floop-nest-optimize)
2017-10-18 Richard Biener <rguenther@suse.de> PR tree-optimization/82591 * graphite.c (graphite_transform_loops): Move code gen message printing ... * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Here. Handle scop_to_isl_ast failing. (scop_to_isl_ast): Limit the number of ISL operations. From-SVN: r253856
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r--gcc/graphite.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c
index d11de71a9b8..5e0d66d107b 100644
--- a/gcc/graphite.c
+++ b/gcc/graphite.c
@@ -378,16 +378,14 @@ 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);
-
changed = true;
- if (!graphite_regenerate_ast_isl (scop))
- 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");
+ if (graphite_regenerate_ast_isl (scop))
+ {
+ location_t loc = find_loop_location
+ (scops[i]->scop_info->region.entry->dest->loop_father);
+ dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loc,
+ "loop nest optimized\n");
+ }
}
if (changed)