projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5ce1003
)
bestate: Remove redundant test for the start block.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 5 Dec 2012 10:23:22 +0000
(11:23 +0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 5 Dec 2012 14:06:22 +0000
(15:06 +0100)
The start block has no predecessors, so the following loop will not be executed.
ir/be/bestate.c
patch
|
blob
|
history
diff --git
a/ir/be/bestate.c
b/ir/be/bestate.c
index
b111185
..
e14633c
100644
(file)
--- a/
ir/be/bestate.c
+++ b/
ir/be/bestate.c
@@
-434,15
+434,10
@@
static void belady_walker(ir_node *block, void *data)
static void fix_block_borders(ir_node *block, void *data)
{
minibelady_env_t *env = (minibelady_env_t*)data;
- ir_graph *irg = get_irn_irg(block);
- ir_node *startblock = get_irg_start_block(irg);
int i;
int arity;
block_info_t *block_info;
- if (block == startblock)
- return;
-
DBG((dbg, LEVEL_3, "\n"));
block_info = get_block_info(block);