diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-19 19:27:29 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-19 19:27:29 +0000 |
commit | 169d13f5763dceb0b3aecaa8cc2fbd1200ef86d6 (patch) | |
tree | 73b2ab10b511c88a1cbdddfb978ad4e83826e4ad /gcc | |
parent | 8942ee0fbfe5361a71c51401933efd1938725dec (diff) | |
download | gcc-169d13f5763dceb0b3aecaa8cc2fbd1200ef86d6.zip gcc-169d13f5763dceb0b3aecaa8cc2fbd1200ef86d6.tar.gz gcc-169d13f5763dceb0b3aecaa8cc2fbd1200ef86d6.tar.bz2 |
delete_trivially_dead_insns works on insns
2014-08-19 David Malcolm <dmalcolm@redhat.com>
* rtl.h (delete_trivially_dead_insns): Strengthen initial param
"insns" from rtx to rtx_insn *.
* cse.c (delete_trivially_dead_insns): Likewise, also do it for
locals "insn" and "prev".
From-SVN: r214185
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cse.c | 4 | ||||
-rw-r--r-- | gcc/rtl.h | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 68f8001..6b1705e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2014-08-19 David Malcolm <dmalcolm@redhat.com> + * rtl.h (delete_trivially_dead_insns): Strengthen initial param + "insns" from rtx to rtx_insn *. + * cse.c (delete_trivially_dead_insns): Likewise, also do it for + locals "insn" and "prev". + +2014-08-19 David Malcolm <dmalcolm@redhat.com> + * rtl.h (tablejump_p): Strengthen third param from rtx * to rtx_jump_table_data **. @@ -6944,10 +6944,10 @@ replace_dead_reg (rtx x, const_rtx old_rtx ATTRIBUTE_UNUSED, void *data) remaining passes of the compilation are also sped up. */ int -delete_trivially_dead_insns (rtx insns, int nreg) +delete_trivially_dead_insns (rtx_insn *insns, int nreg) { int *counts; - rtx insn, prev; + rtx_insn *insn, *prev; rtx *replacements = NULL; int ndead = 0; @@ -3019,7 +3019,7 @@ extern int cse_not_expected; extern int rtx_to_tree_code (enum rtx_code); /* In cse.c */ -extern int delete_trivially_dead_insns (rtx, int); +extern int delete_trivially_dead_insns (rtx_insn *, int); extern int exp_equiv_p (const_rtx, const_rtx, int, bool); extern unsigned hash_rtx (const_rtx x, enum machine_mode, int *, int *, bool); |