This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r163532 - in /trunk/gcc: ChangeLog tree-if-conv.c
- From: spop at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 24 Aug 2010 23:36:04 -0000
- Subject: r163532 - in /trunk/gcc: ChangeLog tree-if-conv.c
Author: spop
Date: Tue Aug 24 23:36:04 2010
New Revision: 163532
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163532
Log:
Speed-up ifcvt_memrefs_wont_trap caching previous results.
This patch speeds up the ifcvt_memrefs_wont_trap computation by
caching the results of the computations in the data references ->aux
fields.
* tree-if-conv.c (struct ifc_dr): New.
(IFC_DR): New.
(DR_WRITTEN_AT_LEAST_ONCE): New.
(DR_RW_UNCONDITIONALLY): New.
(memref_read_or_written_unconditionally): Use the cached values
when possible.
(write_memref_written_at_least_once): Same.
(if_convertible_loop_p): Initialize and free DR->aux fields.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-if-conv.c