projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cf2036b
)
fixed obstack initialization, removed unused variable
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 4 Apr 2008 18:43:42 +0000
(18:43 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 4 Apr 2008 18:43:42 +0000
(18:43 +0000)
[r19134]
ir/opt/opt_inline.c
patch
|
blob
|
history
diff --git
a/ir/opt/opt_inline.c
b/ir/opt/opt_inline.c
index
006192b
..
ed76d7d
100644
(file)
--- a/
ir/opt/opt_inline.c
+++ b/
ir/opt/opt_inline.c
@@
-1630,9
+1630,6
@@
void inline_leave_functions(int maxsize, int leavesize, int size, int ignore_run
current_ir_graph = rem;
}
current_ir_graph = rem;
}
-static char v;
-static void *VISITED = &v;
-
/**
* Calculate the parameter weights for transmitting the address of a local variable.
*/
/**
* Calculate the parameter weights for transmitting the address of a local variable.
*/
@@
-1808,14
+1805,13
@@
void inline_functions(int inline_threshold) {
wenv_t wenv;
call_entry *entry, *tail;
const call_entry *centry;
wenv_t wenv;
call_entry *entry, *tail;
const call_entry *centry;
- struct obstack obst;
pmap *copied_graphs;
pmap_entry *pm_entry;
DEBUG_ONLY(firm_dbg_module_t *dbg;)
FIRM_DBG_REGISTER(dbg, "firm.opt.inline");
rem = current_ir_graph;
pmap *copied_graphs;
pmap_entry *pm_entry;
DEBUG_ONLY(firm_dbg_module_t *dbg;)
FIRM_DBG_REGISTER(dbg, "firm.opt.inline");
rem = current_ir_graph;
- obstack_init(&obst);
+ obstack_init(&
temp_
obst);
/* a map for the copied graphs, used to inline recursive calls */
copied_graphs = pmap_create();
/* a map for the copied graphs, used to inline recursive calls */
copied_graphs = pmap_create();
@@
-1982,6
+1978,6
@@
void inline_functions(int inline_threshold) {
}
pmap_destroy(copied_graphs);
}
pmap_destroy(copied_graphs);
- obstack_free(&obst, NULL);
+ obstack_free(&
temp_
obst, NULL);
current_ir_graph = rem;
}
current_ir_graph = rem;
}