This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r185948 - in /branches/google/gcc-4_6/gcc: Chan...
- From: dehao at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 29 Mar 2012 04:48:12 -0000
- Subject: r185948 - in /branches/google/gcc-4_6/gcc: Chan...
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