projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0acb5c
)
in the backend we can have arbitrary nodes in the startblock
author
Matthias Braun
<matze@braunis.de>
Mon, 2 Apr 2007 14:22:47 +0000
(14:22 +0000)
committer
Matthias Braun
<matze@braunis.de>
Mon, 2 Apr 2007 14:22:47 +0000
(14:22 +0000)
[r12626]
ir/ir/irgopt.c
patch
|
blob
|
history
diff --git
a/ir/ir/irgopt.c
b/ir/ir/irgopt.c
index
4f92417
..
928ad05
100644
(file)
--- a/
ir/ir/irgopt.c
+++ b/
ir/ir/irgopt.c
@@
-1753,7
+1753,8
@@
place_floats_early(ir_node *n, waitq *worklist)
depth = get_Block_dom_depth(pred_block);
}
/* Avoid that the node is placed in the Start block */
- if ((depth == 1) && (get_Block_dom_depth(get_irn_n(n, -1)) > 1)) {
+ if ((depth == 1) && (get_Block_dom_depth(get_irn_n(n, -1)) > 1)
+ && get_irg_phase_state(current_ir_graph) != phase_backend) {
b = get_Block_cfg_out(get_irg_start_block(current_ir_graph), 0);
assert(b != get_irg_start_block(current_ir_graph));
depth = 2;