]> git.ipfire.org Git - thirdparty/gcc.git/commit
Speed-up ifcvt_memrefs_wont_trap caching previous results.
authorSebastian Pop <sebastian.pop@amd.com>
Tue, 24 Aug 2010 23:36:04 +0000 (23:36 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Tue, 24 Aug 2010 23:36:04 +0000 (23:36 +0000)
commit4b9c23ea4e985e4516c75a02948b6c40c8f8a2a7
tree81847459ed3a48b0e2fb27223e2a7c6cbd045dca
parente1fd038a0c859f7f669370f06f0516e4bd5307b9
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.

From-SVN: r163532
gcc/ChangeLog
gcc/tree-if-conv.c