projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a2a0a0
)
checked for dead blocks before getting dom depht.
author
Daniel Grund
<grund@cs.uni-saarland.de>
Thu, 1 Sep 2005 15:35:34 +0000
(15:35 +0000)
committer
Daniel Grund
<grund@cs.uni-saarland.de>
Thu, 1 Sep 2005 15:35:34 +0000
(15:35 +0000)
[r6567]
ir/opt/cfopt.c
patch
|
blob
|
history
diff --git
a/ir/opt/cfopt.c
b/ir/opt/cfopt.c
index
1569db9
..
cfc8c3d
100644
(file)
--- a/
ir/opt/cfopt.c
+++ b/
ir/opt/cfopt.c
@@
-5,7
+5,7
@@
* Author:
* Created:
* CVS-ID: $Id$
* Author:
* Created:
* CVS-ID: $Id$
- * Copyright: (c) 1998-2004 Universit
ä
t Karlsruhe
+ * Copyright: (c) 1998-2004 Universit
�
t Karlsruhe
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
@@
-24,7
+24,6
@@
#include "iropt_t.h"
#include "irgwalk.h"
#include "irgmod.h"
#include "iropt_t.h"
#include "irgwalk.h"
#include "irgmod.h"
-#include "irdump.h"
#include "irvrfy.h"
#include "array.h"
#include "irvrfy.h"
#include "array.h"
@@
-598,7
+597,7
@@
void optimize_cf(ir_graph *irg) {
if (get_Block_dom_depth(ka) == -1)
set_End_keepalive(end, i, new_Bad());
}
if (get_Block_dom_depth(ka) == -1)
set_End_keepalive(end, i, new_Bad());
}
- else if (get_Block_dom_depth(get_nodes_block(ka)) == -1)
+ else if (
is_Block_dead(get_nodes_block(ka)) ||
get_Block_dom_depth(get_nodes_block(ka)) == -1)
set_End_keepalive(end, i, new_Bad());
}
}
set_End_keepalive(end, i, new_Bad());
}
}