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]

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


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