2015-12-09 Richard Biener <rguenther@suse.de>
commit0308f68ba524e7d1751c367bd8d3167a2e1d5817
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Dec 2015 08:32:49 +0000 (9 08:32 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Dec 2015 08:32:49 +0000 (9 08:32 +0000)
treee5404c7d5206af518d41f5c3d3d2c1e369241ab7
parentfc5f8be0c3e365157522ec65e3ffd47921207bc3
2015-12-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/68583
* tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
flag and rename predicates to w_predicate, rw_predicate and
base_w_predicate.
(DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
(DR_BASE_W_UNCONDITIONALLY): ... this.
(DR_W_UNCONDITIONALLY): Add.
(hash_memrefs_baserefs_and_store_DRs_read): Adjust.  Compute
unconditionally written separately from read or written.
(ifcvt_memrefs_wont_trap): Properly treat reads.
(ifcvt_could_trap_p): Inline ...
(if_convertible_gimple_assign_stmt_p): ... here.  Refactor
to avoid code duplication.
(if_convertible_loop_p_1): Adjust and properly initialize
predicates.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231444 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-if-conv.c