Fix if-conversion pass for dead type-unsafe code
authorTom de Vries <tom@codesourcery.com>
Thu, 14 Aug 2014 16:13:59 +0000 (16:13 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 14 Aug 2014 16:13:59 +0000 (16:13 +0000)
commitdf5d402aba66d2e83690dadb6267accc6539e220
treef42d2015dd1fca0bc416d04f437ea88b5e3608bd
parent821fce246e47ef5b4b923f9ed92fa367a9098d26
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.h (mem_attrs_eq_p): Declare.

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

From-SVN: r213970
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]