aboutsummaryrefslogtreecommitdiff
path: root/contrib/analyze_brprob.py
AgeCommit message (Collapse)AuthorFilesLines
2018-01-19Fix usage of analyze_brprob.py script.Martin Liska1-31/+72
2018-01-19 Martin Liska <mliska@suse.cz> * analyze_brprob.py: Support new format that can be easily parsed. Add new column to report. 2018-01-19 Martin Liska <mliska@suse.cz> * predict.c (dump_prediction): Add new format for analyze_brprob.py script which is enabled with -details suboption. * profile-count.h (precise_p): New function. From-SVN: r256886
2017-11-08analyze_brprob.py: fix SI unitsMartin Liska1-1/+1
2017-11-08 Martin Liska <mliska@suse.cz> * analyze_brprob.py: Fix abbreviations for SI units. From-SVN: r254517
2017-05-30Compare predictor values with these defined in predict.def.Martin Liska1-10/+70
2017-05-30 Martin Liska <mliska@suse.cz> * analyze_brprob.py: Add new argument to parse and modify predict.def file. * analyze_brprob_spec.py: Likewise. From-SVN: r248600
2016-12-14Enhance analyze_brprob scriptMartin Liska1-17/+63
* analyze_brprob.py: Add new column to output and new sorting option. Fix coding style to not exceed 80 characters. * analyze_brprob_spec.py: Add new sorting option. Fix coding style to not exceed 80 characters. From-SVN: r243640
2016-07-21Do not divide by zero in analyze_brprob.pyMartin Liska1-6/+7
* analyze_brprob.py: If there's no loop, do not calculate average number of loop iterations. From-SVN: r238590
2016-06-24Dump profile-based number of iterationsMartin Liska1-0/+33
* analyze_brprob.py: Parse and display average number of loop iterations. * cfgloop.c (flow_loop_dump): Dump average number of loop iterations. * cfgloop.h: Change 'struct loop' to 'const struct loop' for a few functions. * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new argument to true if the expected number of iterations is loop-based. From-SVN: r237762
2016-06-17Change PRED_LOOP_EXIT from 92 to 85.Martin Liska1-2/+2
* analyze_brprob.py: Fix columns of script output. * predict.def: PRED_LOOP_EXIT from 92 to 85. * gcc.dg/predict-9.c: Fix dump scanning. From-SVN: r237556
2016-06-09Add sorting support to analyze_brprob scriptMartin Liska1-7/+19
* analyze_brprob.py: Add new argument --sorting. From-SVN: r237256
2016-06-09Add edge predictions pruningMartin Liska1-5/+5
* analyze_brprob.py: Cover new dump output format. * predict.c (dump_prediction): Add new argument. (enum predictor_reason): New enum. (struct predictor_hash): New struct. (predictor_hash::hash): New function. (predictor_hash::equal): Likewise. (not_removed_prediction_p): New function. (prune_predictions_for_bb): Likewise. (combine_predictions_for_bb): Prune predictions. * g++.dg/predict-loop-exit-1.C: Scan for a new dump format. * g++.dg/predict-loop-exit-2.C: Likewise. * g++.dg/predict-loop-exit-3.C: Likewise. * gcc.dg/predict-1.c: Likewise. * gcc.dg/predict-2.c: Likewise. * gcc.dg/predict-3.c: Likewise. * gcc.dg/predict-4.c: Likewise. * gcc.dg/predict-5.c: Likewise. * gcc.dg/predict-6.c: Likewise. * gcc.dg/predict-7.c: Likewise. From-SVN: r237255
2016-05-31Make analyze_brprob.py executable.Martin Liska1-0/+0
From-SVN: r236911
2016-04-28Replace AWK script with the python script.Martin Liska1-0/+136
* analyze_brprob: Remove. * analyze_brprob.py: New file. From-SVN: r235560