Commit e9d1e280 authored by Michael Beck's avatar Michael Beck
Browse files

added get_opt_closed_world() where appropriate

[r8285]
parent f21cd89a
......@@ -217,7 +217,7 @@ static void sel_methods_walker(ir_node * node, void *env) {
*/
assert (get_entity_peculiarity(ent) == peculiarity_description);
}
else if (get_opt_optimize() && get_opt_dyn_meth_dispatch() &&
else if (get_opt_optimize() && get_opt_closed_world() && get_opt_dyn_meth_dispatch() &&
(ARR_LEN(arr) == 1 && arr[0] != NULL)) {
ir_node *new_node;
......@@ -742,7 +742,7 @@ static void callee_walker(ir_node * call, void * env) {
}
#if 0 /* This generates Bad nodes when we don't want it.
Call it with a check for valid cgana information in local_optimize. */
if (ARR_LEN(arr) == 0 && get_opt_optimize() && get_opt_dyn_meth_dispatch()) {
if (ARR_LEN(arr) == 0 && get_opt_optimize() && get_opt_closed_world() && get_opt_dyn_meth_dispatch()) {
/* Kann vorkommen, wenn der Vorgnger beispielsweise eine
* Sel-Operation war, die keine Methoden zurckgeben
* konnte. Wir ersetzen die Call-Operation ebenfalls durch
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment