Fix if-conversion pass for dead type-unsafe code
commitf07f65264f1896fcac87c5890c61859c143f7d3c
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Aug 2014 16:13:59 +0000 (14 16:13 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Aug 2014 16:13:59 +0000 (14 16:13 +0000)
treef42d2015dd1fca0bc416d04f437ea88b5e3608bd
parentc49ee0f56805449db557a7d265eddd60e73b87ab
Fix if-conversion pass for dead type-unsafe code

2014-08-14  Tom de Vries  <tom@codesourcery.com>

PR rtl-optimization/62004
PR rtl-optimization/62030
* ifcvt.c (rtx_interchangeable_p): New function.
(noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
* emit-rtl.c (mem_attrs_eq_p): Remove static.
* emit-rtl.h (mem_attrs_eq_p): Declare.

* gcc.dg/pr62004.c: New test.
* gcc.dg/pr62030.c: Same.
* gcc.target/mips/pr62030-octeon.c: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213970 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/emit-rtl.h
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr62004.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr62030.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/pr62030-octeon.c [new file with mode: 0644]