diff options
author | Martin Liska <mliska@suse.cz> | 2018-08-10 11:31:51 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-08-10 09:31:51 +0000 |
commit | 7a096965f668c1d2129c70c92e2398227b97eee6 (patch) | |
tree | 369110415b7ecc35cb7caa2b7a109551fb79b3ed /gcc/predict.def | |
parent | d568f0b6dbee4079cf19412330a0bbb959d530cf (diff) | |
download | gcc-7a096965f668c1d2129c70c92e2398227b97eee6.zip gcc-7a096965f668c1d2129c70c92e2398227b97eee6.tar.gz gcc-7a096965f668c1d2129c70c92e2398227b97eee6.tar.bz2 |
Strip only selected predictors after early tree passes (PR tree-optimization/85799).
2018-08-10 Martin Liska <mliska@suse.cz>
PR tree-optimization/85799
* passes.def: Add argument for pass_strip_predict_hints.
* predict.c (class pass_strip_predict_hints): Add new argument
early_p.
(strip_predictor_early): New function.
(pass_strip_predict_hints::execute): Call the function to
strip predictors.
(strip_predict_hints): New function.
* predict.def: Fix comment.
2018-08-10 Martin Liska <mliska@suse.cz>
PR tree-optimization/85799
* gcc.dg/pr85799.c: New test.
From-SVN: r263465
Diffstat (limited to 'gcc/predict.def')
-rw-r--r-- | gcc/predict.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.def b/gcc/predict.def index 76e6590..c0709aa 100644 --- a/gcc/predict.def +++ b/gcc/predict.def @@ -22,7 +22,7 @@ along with GCC; see the file COPYING3. If not see DEF_PREDICTOR (ENUM, NAME, HITRATE) This macro will be called once for each predictor. The ENUM will - be of type `enum predictor', and will enumerate all supported + be of type `enum br_predictor', and will enumerate all supported predictors. The order of DEF_PREDICTOR calls is important, as in the first match combining heuristics, the predictor appearing first in this file will win. |