This is the mail archive of the gcc-patches@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]

Re: [patch, fortran] Optimize some more string comparisons


Hello Steve,

> On Sat, Oct 09, 2010 at 10:21:41AM +0200, Thomas Koenig wrote:
> > 
> > 2010-10-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
> > 
> > 	* frontend-passes.c:  Include opts.h.
> > 	(optimize_comparison):  Renamed from optimize_equality.
> > 	Change second argument to operation to be compared.
> > 	Use flag_finite_math_only to avoid comparing REAL and
> > 	COMPLEX only when NANs are honored.  Simplify comparing
> > 	of string concatenations where left or right operands are
> > 	equal.  Simplify all comparison operations, based on the result
> > 	of gfc_dep_compare_expr.
> > 	* dependency.c:  Include arith.h.
> > 	(gfc_are_identical_variables):  Volatile variables should not
> > 	compare equal to themselves.
> > 	(gfc_dep_compare_expr):  Handle string constants and string
> > 	concatenations.
> > 
> > 2010-10-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
> > 
> > 	* gfortran.dg/character_comparison_4.f90:  New test.
> > 	* gfortran.dg/character_comparison_5.f90:  New test.
> > 	* gfortran.dg/character_comparison_6.f90:  New test.
> 
> OK.

Waiting for Emacs...
Sending        fortran/ChangeLog
Sending        fortran/dependency.c
Sending        fortran/frontend-passes.c
Sending        testsuite/ChangeLog
Adding         testsuite/gfortran.dg/character_comparison_4.f90
Adding         testsuite/gfortran.dg/character_comparison_5.f90
Adding         testsuite/gfortran.dg/character_comparison_6.f90
Transmitting file data .......
Committed revision 165248.

Thanks a lot for the review!

	Thomas


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