Strip only selected predictors after early tree passes (PR tree-optimization/85799).
authorMartin Liska <mliska@suse.cz>
Fri, 10 Aug 2018 09:31:51 +0000 (11:31 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 10 Aug 2018 09:31:51 +0000 (09:31 +0000)
commit7a096965f668c1d2129c70c92e2398227b97eee6
tree369110415b7ecc35cb7caa2b7a109551fb79b3ed
parentd568f0b6dbee4079cf19412330a0bbb959d530cf
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
gcc/ChangeLog
gcc/passes.def
gcc/predict.c
gcc/predict.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr85799.c [new file with mode: 0644]