diff options
author | Tom de Vries <tom@codesourcery.com> | 2014-08-14 16:13:59 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2014-08-14 16:13:59 +0000 |
commit | df5d402aba66d2e83690dadb6267accc6539e220 (patch) | |
tree | f42d2015dd1fca0bc416d04f437ea88b5e3608bd /gcc/emit-rtl.h | |
parent | 821fce246e47ef5b4b923f9ed92fa367a9098d26 (diff) | |
download | gcc-df5d402aba66d2e83690dadb6267accc6539e220.tar.gz |
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
Diffstat (limited to 'gcc/emit-rtl.h')
-rw-r--r-- | gcc/emit-rtl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/emit-rtl.h b/gcc/emit-rtl.h index 8439750416b..bae6e696fd3 100644 --- a/gcc/emit-rtl.h +++ b/gcc/emit-rtl.h @@ -72,6 +72,7 @@ extern void set_reg_attrs_for_parm (rtx, rtx); extern void set_reg_attrs_for_decl_rtl (tree t, rtx x); extern void adjust_reg_mode (rtx, enum machine_mode); extern int mem_expr_equal_p (const_tree, const_tree); +extern bool mem_attrs_eq_p (const struct mem_attrs *, const struct mem_attrs *); extern bool need_atomic_barrier_p (enum memmodel, bool); |