* graphite-scop-detection.c (build_scops): Do not handle scops with more
than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
* params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
From-SVN: r229150
+2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
+ Sebastian Pop <s.pop@samsung.com>
+
+ * graphite-scop-detection.c (build_scops): Do not handle scops with more
+ than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
+ * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
+
2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
* config.in: Regenerate.
continue;
}
+ unsigned max_arrays = PARAM_VALUE (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP);
+ if (scop->drs.length () >= max_arrays)
+ {
+ DEBUG_PRINT (dp << "[scop-detection-fail] too many data references: "
+ << scop->drs.length ()
+ << " is larger than --param graphite-max-arrays-per-scop="
+ << max_arrays << ".\n");
+ free_scop (scop);
+ continue;
+ }
+
build_sese_loop_nests (scop->scop_info);
find_scop_parameters (scop);
"maximum number of basic blocks per function to be analyzed by Graphite",
100, 0, 0)
+/* Maximal number of array references in a scop. */
+
+DEFPARAM (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP,
+ "graphite-max-arrays-per-scop",
+ "maximum number of arrays per scop",
+ 100, 0, 0)
+
/* Maximal number of basic blocks in the functions analyzed by Graphite. */
DEFPARAM (PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION,