From d03958cfdfa01c3ad63ac50c190a056f1add4dc0 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 28 Feb 2017 09:42:06 +0100 Subject: [PATCH] Miscellaneous optimization group fixes gcc/ * doc/optinfo.texi (Optimization groups): Fix option used for OPTGROUP_ALL. * doc/invoke.texi (-fopt-info): Document "omp". * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC. (OPTGROUP_ALL): Add OPTGROUP_OMP. * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP. * ipa-hsa.c (pass_data_ipa_hsa): Likewise. * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise. From-SVN: r245769 --- gcc/ChangeLog | 9 +++++++++ gcc/doc/invoke.texi | 2 ++ gcc/doc/optinfo.texi | 2 +- gcc/dumpfile.h | 6 +++--- gcc/hsa-gen.c | 2 +- gcc/ipa-hsa.c | 2 +- gcc/omp-simd-clone.c | 2 +- 7 files changed, 18 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b699944eab8..cd9552175ff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,14 @@ 2017-02-28 Thomas Schwinge + * doc/optinfo.texi (Optimization groups): Fix option used for + OPTGROUP_ALL. + * doc/invoke.texi (-fopt-info): Document "omp". + * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC. + (OPTGROUP_ALL): Add OPTGROUP_OMP. + * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP. + * ipa-hsa.c (pass_data_ipa_hsa): Likewise. + * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise. + * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust all users. * dumpfile.c (optgroup_options): Instead of "openmp", associate diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 1b9fdfe71bb..d90c95c112d 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -13155,6 +13155,8 @@ Enable dumps from all interprocedural optimizations. Enable dumps from all loop optimizations. @item inline Enable dumps from all inlining optimizations. +@item omp +Enable dumps from all OMP (Offloading and Multi Processing) optimizations. @item vec Enable dumps from all vectorization optimizations. @item optall diff --git a/gcc/doc/optinfo.texi b/gcc/doc/optinfo.texi index cf6ce001f48..e17cb371aa8 100644 --- a/gcc/doc/optinfo.texi +++ b/gcc/doc/optinfo.texi @@ -70,7 +70,7 @@ Vectorization passes. Enabled by @option{-vec}. All other optimization passes which do not fall into one of the above. @item OPTGROUP_ALL -All optimization passes. Enabled by @option{-all}. +All optimization passes. Enabled by @option{-optall}. @end ftable diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h index 3886f98150c..fef58f5e9b1 100644 --- a/gcc/dumpfile.h +++ b/gcc/dumpfile.h @@ -98,12 +98,12 @@ enum tree_dump_index #define OPTGROUP_IPA (1 << 1) /* IPA optimization passes */ #define OPTGROUP_LOOP (1 << 2) /* Loop optimization passes */ #define OPTGROUP_INLINE (1 << 3) /* Inlining passes */ -#define OPTGROUP_VEC (1 << 4) /* Vectorization passes */ -#define OPTGROUP_OMP (1 << 5) /* OMP (Offloading and Multi +#define OPTGROUP_OMP (1 << 4) /* OMP (Offloading and Multi Processing) transformations */ +#define OPTGROUP_VEC (1 << 5) /* Vectorization passes */ #define OPTGROUP_OTHER (1 << 6) /* All other passes */ #define OPTGROUP_ALL (OPTGROUP_IPA | OPTGROUP_LOOP | OPTGROUP_INLINE \ - | OPTGROUP_VEC | OPTGROUP_OTHER) + | OPTGROUP_OMP | OPTGROUP_VEC | OPTGROUP_OTHER) /* Define a tree dump switch. */ struct dump_file_info diff --git a/gcc/hsa-gen.c b/gcc/hsa-gen.c index 7721fcc9334..7b69d64ac97 100644 --- a/gcc/hsa-gen.c +++ b/gcc/hsa-gen.c @@ -6474,7 +6474,7 @@ const pass_data pass_data_gen_hsail = { GIMPLE_PASS, "hsagen", /* name */ - OPTGROUP_NONE, /* optinfo_flags */ + OPTGROUP_OMP, /* optinfo_flags */ TV_NONE, /* tv_id */ PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ diff --git a/gcc/ipa-hsa.c b/gcc/ipa-hsa.c index af70b0a9230..c02dadaa016 100644 --- a/gcc/ipa-hsa.c +++ b/gcc/ipa-hsa.c @@ -289,7 +289,7 @@ const pass_data pass_data_ipa_hsa = { IPA_PASS, /* type */ "hsa", /* name */ - OPTGROUP_NONE, /* optinfo_flags */ + OPTGROUP_OMP, /* optinfo_flags */ TV_IPA_HSA, /* tv_id */ 0, /* properties_required */ 0, /* properties_provided */ diff --git a/gcc/omp-simd-clone.c b/gcc/omp-simd-clone.c index 09ad40b55b8..99589d44664 100644 --- a/gcc/omp-simd-clone.c +++ b/gcc/omp-simd-clone.c @@ -1690,7 +1690,7 @@ const pass_data pass_data_omp_simd_clone = { SIMPLE_IPA_PASS, /* type */ "simdclone", /* name */ - OPTGROUP_NONE, /* optinfo_flags */ + OPTGROUP_OMP, /* optinfo_flags */ TV_NONE, /* tv_id */ ( PROP_ssa | PROP_cfg ), /* properties_required */ 0, /* properties_provided */ -- 2.30.2