Hi. Following small series makes deduplication of predictors in following 2 ways: 1) remove duplicate prediction that is guessed with the same probability (different than 1/2) to both edges 2) remove duplicates for a prediction that belongs with the same probability to a single edge
Patch also changes dump output format a bit, thus analyze_brprob.py script has been also modified to understand the format. Bootstrapped and regtested on x86_64-linux Ready for trunk? Martin marxin (2): Introduce filtering for edge_predictions. Add edge predictions pruning contrib/analyze_brprob.py | 10 +- gcc/predict.c | 209 +++++++++++++++++++++++++---- gcc/testsuite/g++.dg/predict-loop-exit-1.C | 4 +- gcc/testsuite/g++.dg/predict-loop-exit-2.C | 4 +- gcc/testsuite/g++.dg/predict-loop-exit-3.C | 4 +- gcc/testsuite/gcc.dg/predict-1.c | 2 +- gcc/testsuite/gcc.dg/predict-3.c | 2 +- gcc/testsuite/gcc.dg/predict-4.c | 2 +- gcc/testsuite/gcc.dg/predict-5.c | 2 +- gcc/testsuite/gcc.dg/predict-6.c | 2 +- 10 files changed, 201 insertions(+), 40 deletions(-) -- 2.8.3