projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
887edd1
)
- do not kill the start block when folding control flow
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 30 Jul 2008 00:59:31 +0000
(
00:59
+0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 30 Jul 2008 00:59:31 +0000
(
00:59
+0000)
[r20778]
ir/opt/combo.c
patch
|
blob
|
history
diff --git
a/ir/opt/combo.c
b/ir/opt/combo.c
index
283d668
..
5275e0a
100644
(file)
--- a/
ir/opt/combo.c
+++ b/
ir/opt/combo.c
@@
-1490,7
+1490,9
@@
static ir_node *get_leader(node_t *node) {
* @param pred the control flow exit
*/
static int can_exchange(ir_node *pred) {
- if (is_Jmp(pred))
+ if (is_Start(pred))
+ return 0;
+ else if (is_Jmp(pred))
return 1;
else if (get_irn_mode(pred) == mode_T) {
int i, k;