Fix first match heuristics
commit9ae89a4e68dfedb678ed4f6413ba27ec187a7604
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jun 2016 12:51:57 +0000 (2 12:51 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jun 2016 12:51:57 +0000 (2 12:51 +0000)
treee39cf66c60d50eee2d9159123f798e6d3765277e
parent41258f9c512e6443109b6c00a109f762e4685f2e
Fix first match heuristics

* predict.c (combine_predictions_for_bb): Fix first match in
cases where a first predictor contains more than one occurence
in list of predictors.  Take the best value in such case.
* gcc.dg/predict-9.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237036 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/predict-9.c [new file with mode: 0644]