This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r185949 - in /branches/google/main/gcc: ChangeL...
- From: dehao at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 29 Mar 2012 05:11:02 -0000
- Subject: r185949 - in /branches/google/main/gcc: ChangeL...
Author: dehao
Date: Thu Mar 29 05:11:00 2012
New Revision: 185949
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185949
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/main/gcc/testsuite/gcc.dg/predict-5.c
branches/google/main/gcc/testsuite/gcc.dg/predict-6.c
Modified:
branches/google/main/gcc/ChangeLog.google-main
branches/google/main/gcc/predict.c
branches/google/main/gcc/testsuite/ChangeLog.google-main
branches/google/main/gcc/testsuite/gcc.dg/predict-1.c
branches/google/main/gcc/testsuite/gcc.dg/predict-2.c
branches/google/main/gcc/testsuite/gcc.dg/predict-3.c
branches/google/main/gcc/testsuite/gcc.dg/predict-4.c