diff options
author | Tom de Vries <tom@codesourcery.com> | 2011-04-05 09:43:12 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2011-04-05 09:43:12 +0000 |
commit | 0248bceb7ba8fa849dc3c06d170edb8ce6d96d14 (patch) | |
tree | c86113b8da1f6c87209a5c41f6fe95cacb5b2a0c /gcc | |
parent | 720cf80f141387e8c5d6afad3bd25a13ac6de06f (diff) | |
download | gcc-0248bceb7ba8fa849dc3c06d170edb8ce6d96d14.zip gcc-0248bceb7ba8fa849dc3c06d170edb8ce6d96d14.tar.gz gcc-0248bceb7ba8fa849dc3c06d170edb8ce6d96d14.tar.bz2 |
cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2011-04-05 Tom de Vries <tom@codesourcery.com>
* cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
From-SVN: r171975
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cfgcleanup.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a23403a..d9bc24e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-04-05 Tom de Vries <tom@codesourcery.com> + + * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables. + 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com> * config/arm/arm.md (define_constants for unspec): Replace with diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 266fda7..6178b59 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -1808,7 +1808,6 @@ try_crossjump_bb (int mode, basic_block bb) edge e, e2, fallthru; bool changed; unsigned max, ix, ix2; - basic_block ev, ev2; /* Nothing to do if there is not at least two incoming edges. */ if (EDGE_COUNT (bb->preds) < 2) @@ -1848,9 +1847,9 @@ try_crossjump_bb (int mode, basic_block bb) fallthru = find_fallthru_edge (bb->preds); changed = false; - for (ix = 0, ev = bb; ix < EDGE_COUNT (ev->preds); ) + for (ix = 0; ix < EDGE_COUNT (bb->preds);) { - e = EDGE_PRED (ev, ix); + e = EDGE_PRED (bb, ix); ix++; /* As noted above, first try with the fallthru predecessor (or, a @@ -1872,7 +1871,6 @@ try_crossjump_bb (int mode, basic_block bb) { changed = true; ix = 0; - ev = bb; continue; } } @@ -1892,10 +1890,9 @@ try_crossjump_bb (int mode, basic_block bb) if (EDGE_SUCC (e->src, 0) != e) continue; - for (ix2 = 0, ev2 = bb; ix2 < EDGE_COUNT (ev2->preds); ) + for (ix2 = 0; ix2 < EDGE_COUNT (bb->preds); ix2++) { - e2 = EDGE_PRED (ev2, ix2); - ix2++; + e2 = EDGE_PRED (bb, ix2); if (e2 == e) continue; @@ -1921,7 +1918,6 @@ try_crossjump_bb (int mode, basic_block bb) if (try_crossjump_to_edge (mode, e, e2)) { changed = true; - ev2 = bb; ix = 0; break; } |