aboutsummaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2010-06-29 22:29:30 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2010-06-29 22:29:30 +0000
commitee932b8fad6f447af1c8304de08ecd44233966ea (patch)
tree4390e59ed928be9192c181a328f04d0eb045311c /gcc/genrecog.c
parent68d8db775f3dd767387136cd3baf47cba087d9a6 (diff)
downloadgcc-ee932b8fad6f447af1c8304de08ecd44233966ea.zip
gcc-ee932b8fad6f447af1c8304de08ecd44233966ea.tar.gz
gcc-ee932b8fad6f447af1c8304de08ecd44233966ea.tar.bz2
recog.c (peep2_do_rebuild_jump_labels, [...]): New static variables.
* recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New static variables. (peep2_buf_position): New static function. (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register, peephole2_optimize): Use it. (peep2_attempt, peep2_update_life): New static functions, broken out of peephole2_optimize. (peep2_fill_buffer): New static function. (peephole2_optimize): Change the main loop to try to fill the buffer with the maximum number of insns before matching them against peepholes. Use a forward scan. Remove special case for targets with conditional execution. * genrecog.c (change_state): Delete dead code. * config/i386/i386.md (peephole2 for arithmetic ops with memory): Rewrite so as not to expect the second insn to have had a peephole applied yet. From-SVN: r161570
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r--gcc/genrecog.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index 26c2a95..bc7767f 100644
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -1761,20 +1761,11 @@ change_state (const char *oldpos, const char *newpos, const char *indent)
int odepth = strlen (oldpos);
int ndepth = strlen (newpos);
int depth;
- int old_has_insn, new_has_insn;
/* Pop up as many levels as necessary. */
for (depth = odepth; strncmp (oldpos, newpos, depth) != 0; --depth)
continue;
- /* Hunt for the last [A-Z] in both strings. */
- for (old_has_insn = odepth - 1; old_has_insn >= 0; --old_has_insn)
- if (ISUPPER (oldpos[old_has_insn]))
- break;
- for (new_has_insn = ndepth - 1; new_has_insn >= 0; --new_has_insn)
- if (ISUPPER (newpos[new_has_insn]))
- break;
-
/* Go down to desired level. */
while (depth < ndepth)
{