From d9b2ad95687728b307624bf20c71c29f10fffe8e Mon Sep 17 00:00:00 2001 From: spop Date: Sat, 13 Mar 2010 17:34:51 +0000 Subject: [PATCH] Add PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION. 2010-03-09 Sebastian Pop * graphite.c (graphite_initialize): To bound the number of bbs per function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION. * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared. * doc/invoke.texi: Document it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157433 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog.graphite | 7 +++++++ gcc/doc/invoke.texi | 5 +++++ gcc/params.def | 7 +++++++ 3 files changed, 19 insertions(+) diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 2aa6fd55b86..3a94ee18459 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,5 +1,12 @@ 2010-03-09 Sebastian Pop + * graphite.c (graphite_initialize): To bound the number of bbs per + function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION. + * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared. + * doc/invoke.texi: Document it. + +2010-03-09 Sebastian Pop + * graphite-sese-to-poly.c (build_poly_scop): Do not return bool. * graphite-sese-to-poly.h (build_poly_scop): Same. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index eb6e1a19c03..0ffb3970bc9 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -8606,6 +8606,11 @@ pointer parameter. To avoid exponential effects in the Graphite loop transforms, the number of parameters in a SCoP is bounded by 10. +@item graphite-max-bbs-per-function +To avoid exponential effects in the detection of SCoPs, the functions +with more than 100 basic blocks are not handled by the Graphite loop +transforms. + @end table @end table diff --git a/gcc/params.def b/gcc/params.def index fe07a27cc45..1070524e332 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -752,6 +752,13 @@ DEFPARAM (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS, "maximal number of parameters in a SCoP", 10, 0, 0) +/* Maximal number of basic blocks in the functions analyzed by Graphite. */ + +DEFPARAM (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION, + "graphite-max-bbs-per-function", + "maximal number of basic blocks per function to be analyzed by Graphite", + 100, 0, 0) + /* Avoid doing loop invariant motion on very large loops. */ DEFPARAM (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP, -- 2.11.0