diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-10-13 10:08:59 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-10-13 10:08:59 +0000 |
commit | 1f600feab05dc0737a6e11b871fe31b0698ba812 (patch) | |
tree | 4e5a5ae77f108036483e9d79859170f07a5a626c /gcc/params.def | |
parent | d78182cc0ce05104e2f1cd40c97de974f075479f (diff) | |
download | gcc-1f600feab05dc0737a6e11b871fe31b0698ba812.zip gcc-1f600feab05dc0737a6e11b871fe31b0698ba812.tar.gz gcc-1f600feab05dc0737a6e11b871fe31b0698ba812.tar.bz2 |
Add param parloops-schedule
2015-10-13 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/67476
* doc/invoke.texi (@item parloops-schedule): New item.
* params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
* tree-parloops.c: Include params-enum.h.
(create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
* testsuite/libgomp.c/autopar-3.c: New test.
* testsuite/libgomp.c/autopar-4.c: New test.
* testsuite/libgomp.c/autopar-5.c: New test.
* testsuite/libgomp.c/autopar-6.c: New test.
* testsuite/libgomp.c/autopar-7.c: New test.
* testsuite/libgomp.c/autopar-8.c: New test.
From-SVN: r228756
Diffstat (limited to 'gcc/params.def')
-rw-r--r-- | gcc/params.def | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def index 8b8b9fe..dd07301 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -35,6 +35,11 @@ along with GCC; see the file COPYING3. If not see - The maximum acceptable value for the parameter (if greater than the minimum). + The DEFPARAMENUM<N> macro is similar, but instead of the minumum and maximum + arguments, it contains a list of <N> allowed strings, corresponding to + integer values 0..<N>-1. Note that the default argument needs to be + specified as one of the allowed strings, rather than an integer value. + Be sure to add an entry to invoke.texi summarizing the parameter. */ /* When branch is predicted to be taken with probability lower than this @@ -1153,6 +1158,13 @@ DEFPARAM (PARAM_PARLOOPS_CHUNK_SIZE, "Chunk size of omp schedule for loops parallelized by parloops", 0, 0, 0) +DEFPARAMENUM5 (PARAM_PARLOOPS_SCHEDULE, + "parloops-schedule", + "Schedule type of omp schedule for loops parallelized by " + "parloops (static, dynamic, guided, auto, runtime)", + static, + static, dynamic, guided, auto, runtime) + DEFPARAM (PARAM_MAX_SSA_NAME_QUERY_DEPTH, "max-ssa-name-query-depth", "Maximum recursion depth allowed when querying a property of an" |