Commit 0248bceb by Tom de Vries Committed by Tom de Vries

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
parent 720cf80f
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> 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
* config/arm/arm.md (define_constants for unspec): Replace with * config/arm/arm.md (define_constants for unspec): Replace with
......
...@@ -1808,7 +1808,6 @@ try_crossjump_bb (int mode, basic_block bb) ...@@ -1808,7 +1808,6 @@ try_crossjump_bb (int mode, basic_block bb)
edge e, e2, fallthru; edge e, e2, fallthru;
bool changed; bool changed;
unsigned max, ix, ix2; unsigned max, ix, ix2;
basic_block ev, ev2;
/* Nothing to do if there is not at least two incoming edges. */ /* Nothing to do if there is not at least two incoming edges. */
if (EDGE_COUNT (bb->preds) < 2) if (EDGE_COUNT (bb->preds) < 2)
...@@ -1848,9 +1847,9 @@ try_crossjump_bb (int mode, basic_block bb) ...@@ -1848,9 +1847,9 @@ try_crossjump_bb (int mode, basic_block bb)
fallthru = find_fallthru_edge (bb->preds); fallthru = find_fallthru_edge (bb->preds);
changed = false; 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++; ix++;
/* As noted above, first try with the fallthru predecessor (or, a /* As noted above, first try with the fallthru predecessor (or, a
...@@ -1872,7 +1871,6 @@ try_crossjump_bb (int mode, basic_block bb) ...@@ -1872,7 +1871,6 @@ try_crossjump_bb (int mode, basic_block bb)
{ {
changed = true; changed = true;
ix = 0; ix = 0;
ev = bb;
continue; continue;
} }
} }
...@@ -1892,10 +1890,9 @@ try_crossjump_bb (int mode, basic_block bb) ...@@ -1892,10 +1890,9 @@ try_crossjump_bb (int mode, basic_block bb)
if (EDGE_SUCC (e->src, 0) != e) if (EDGE_SUCC (e->src, 0) != e)
continue; 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); e2 = EDGE_PRED (bb, ix2);
ix2++;
if (e2 == e) if (e2 == e)
continue; continue;
...@@ -1921,7 +1918,6 @@ try_crossjump_bb (int mode, basic_block bb) ...@@ -1921,7 +1918,6 @@ try_crossjump_bb (int mode, basic_block bb)
if (try_crossjump_to_edge (mode, e, e2)) if (try_crossjump_to_edge (mode, e, e2))
{ {
changed = true; changed = true;
ev2 = bb;
ix = 0; ix = 0;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment