summaryrefslogtreecommitdiff
path: root/gcc/graphite.c
diff options
context:
space:
mode:
authorAditya Kumar <aditya.k7@samsung.com>2015-11-23 19:28:13 +0000
committerSebastian Pop <spop@gcc.gnu.org>2015-11-23 19:28:13 +0000
commit36f40be01235095cd7bb5039b0027b9720534f37 (patch)
tree417ad9898a43ec0ccd452be020c358b9984dcc26 /gcc/graphite.c
parent8f29e7f5ea0d1f35c2f0524e31c0da9885a8c917 (diff)
fix PR68279: bail out when scev gets instantiated to not_known
Co-Authored-By: Sebastian Pop <s.pop@samsung.com> From-SVN: r230771
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r--gcc/graphite.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c
index c2efdc95925..ef7e64daf2f 100644
--- a/gcc/graphite.c
+++ b/gcc/graphite.c
@@ -62,7 +62,6 @@ along with GCC; see the file COPYING3. If not see
#include "graphite-poly.h"
#include "graphite-scop-detection.h"
#include "graphite-isl-ast-to-gimple.h"
-#include "graphite-sese-to-poly.h"
/* Print global statistics to FILE. */
@@ -326,20 +325,18 @@ graphite_transform_loops (void)
if (dbg_cnt (graphite_scop))
{
scop->isl_context = ctx;
- build_poly_scop (scop);
-
- if (dump_file && dump_flags)
- print_scop (dump_file, scop);
- if (scop->poly_scop_p
- && apply_poly_transforms (scop))
- {
- 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;
- }
+ if (!build_poly_scop (scop))
+ continue;
+
+ if (!apply_poly_transforms (scop))
+ continue;
+
+ 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;
}
free_scops (scops);