This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]