re PR tree-optimization/68583 (Missed if-conversion)
authorRichard Biener <rguenther@suse.de>
Wed, 9 Dec 2015 08:32:49 +0000 (08:32 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 9 Dec 2015 08:32:49 +0000 (08:32 +0000)
commitdb9be04ed89e3aa82d113775d7a12699904d9735
treee5404c7d5206af518d41f5c3d3d2c1e369241ab7
parent34cd48e5d56b95f149e1c7e294f522bd3c93c94f
re PR tree-optimization/68583 (Missed if-conversion)

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.

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