Relax trap assumptions in tree if convert.
authorVenkataramanan Kumar <venkataramanan.kumar@amd.com>
Tue, 17 Nov 2015 07:41:08 +0000 (07:41 +0000)
committerVenkataramanan Kumar <vekumar@gcc.gnu.org>
Tue, 17 Nov 2015 07:41:08 +0000 (07:41 +0000)
commitf939586ac50948f6915dbee9bd5d425a1e3c2a7d
treec67bb88bca0b89d9a24fa9c58c33c023db83603a
parentb925d25d7eeccf5a259f5c744b2de8d8285e0bc3
Relax trap assumptions in tree if convert.

2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>

* tree-if-conv.c: Include varasm.h
(ref_DR_map): Define.
(baseref_DR_map): Like wise
(struct ifc_dr): Add new tree predicate field.
(hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
(memrefs_read_or_written_unconditionally): Remove.
(write_memrefs_written_at_least_once): Remove.
(ifcvt_memrefs_wont_trap): Use hash maps to query
unconditional read/written information.
(if_convertible_loop_p_1):  Initialize hash maps and predicates
before hashing data references and delete hashmaps at the end.

2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>

* gcc.dg/tree-ssa/ifc-8.c: New test.

From-SVN: r230454
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ifc-8.c [new file with mode: 0644]
gcc/tree-if-conv.c