]> git.ipfire.org Git - thirdparty/gcc.git/commit
predict.c (predict_loops): Predict for short-circuit conditions.
authorDehao Chen <dehao@google.com>
Mon, 8 Oct 2012 16:45:21 +0000 (16:45 +0000)
committerDehao Chen <dehao@gcc.gnu.org>
Mon, 8 Oct 2012 16:45:21 +0000 (16:45 +0000)
commit16fdb75f788f9fe3d26853188a4c186efd5aef44
tree675e200d78e6ed4df9b534e2184161059261b725
parent2512a443d6c09f42c24dca5dfd4173cdef39c3b1
predict.c (predict_loops): Predict for short-circuit conditions.

gcc:
2012-10-08  Dehao Chen  <dehao@google.com>

* predict.c (predict_loops): Predict for short-circuit conditions.
(predict_extra_loop_exits): New Function.

testsuite:
2012-10-08  Dehao Chen  <dehao@google.com>

* g++.dg/predict-loop-exit-1.C: New.
* g++.dg/predict-loop-exit-2.C: New.
* g++.dg/predict-loop-exit-3.C: New.

From-SVN: r192215
gcc/ChangeLog
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/predict-loop-exit-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/predict-loop-exit-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/predict-loop-exit-3.C [new file with mode: 0644]