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:
a1f2589
)
start block is allowed to have no cfop as last command
author
Matthias Braun
<matze@braunis.de>
Fri, 20 Oct 2006 09:29:04 +0000
(09:29 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 20 Oct 2006 09:29:04 +0000
(09:29 +0000)
ir/be/bespill.c
patch
|
blob
|
history
diff --git
a/ir/be/bespill.c
b/ir/be/bespill.c
index
321bf2f
..
154a3a1
100644
(file)
--- a/
ir/be/bespill.c
+++ b/
ir/be/bespill.c
@@
-199,7
+199,14
@@
static ir_node *get_reload_insertion_point(ir_node *block, int pos) {
last = sched_prev(last);
assert(!sched_is_end(last));
}
- assert(is_cfop(last));
+
+ if(!is_cfop(last)) {
+ ir_graph *irg = get_irn_irg(block);
+ ir_node *startblock = get_irg_start_block(irg);
+
+ // last node must be a cfop, only exception is the start block
+ assert(last == startblock);
+ }
// add the reload before the (cond-)jump
return last;