r185948 - in /branches/google/gcc-4_6/gcc: Chan...
dehao@gcc.gnu.org
dehao@gcc.gnu.org
Thu Mar 29 04:48:00 GMT 2012
Author: dehao
Date: Thu Mar 29 04:48:11 2012
New Revision: 185948
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185948
Log:
This patch handles the comparison of iv against its initial value
Previously, we only handle the comparison of iv against its bound.
Tested: gcc bootstrap and regression tests.
2012-03-29 Dehao Chen <dehao@google.com>
* predict.c (predict_iv_comparison): Add the comparison of induction
variable against its initial value.
* gcc.dg/predict-1.c: Check if LOOP_IV_COMPARE static predict
heuristic is working properly.
* 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
Added:
branches/google/gcc-4_6/gcc/testsuite/gcc.dg/predict-5.c
branches/google/gcc-4_6/gcc/testsuite/gcc.dg/predict-6.c
Modified:
branches/google/gcc-4_6/gcc/ChangeLog.google-4_6
branches/google/gcc-4_6/gcc/predict.c
branches/google/gcc-4_6/gcc/testsuite/ChangeLog.google-4_6
branches/google/gcc-4_6/gcc/testsuite/gcc.dg/predict-1.c
branches/google/gcc-4_6/gcc/testsuite/gcc.dg/predict-2.c
branches/google/gcc-4_6/gcc/testsuite/gcc.dg/predict-3.c
branches/google/gcc-4_6/gcc/testsuite/gcc.dg/predict-4.c
More information about the Gcc-cvs
mailing list