Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
7f2f113a
Commit
7f2f113a
authored
Jan 24, 2014
by
yb9976
Browse files
Cleanup using C99.
parent
ee5e273a
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/opt/opt_inline.c
View file @
7f2f113a
...
...
@@ -291,8 +291,8 @@ static void copy_parameter_entities(ir_node *call, ir_graph *called_graph)
ir_type
*
old_type
=
get_entity_type
(
old_entity
);
dbg_info
*
entity_dbgi
=
get_entity_dbg_info
(
old_entity
);
ident
*
name
=
get_entity_ident
(
old_entity
);
name
=
id_mangle3
(
""
,
name
,
"$inlined"
);
ident
*
old_
name
=
get_entity_ident
(
old_entity
);
ident
*
name
=
id_mangle3
(
""
,
old_
name
,
"$inlined"
);
ir_entity
*
new_ent
=
new_entity
(
frame_type
,
name
,
old_type
);
set_entity_dbg_info
(
new_ent
,
entity_dbgi
);
set_entity_link
(
old_entity
,
new_ent
);
...
...
@@ -1138,7 +1138,6 @@ static void inline_into(ir_graph *irg, unsigned maxsize,
* the graph first.
*/
int
benefice
=
curr_call
->
benefice
;
ir_graph
*
copy
;
/*
* Reduce the weight for recursive function IFF not all arguments
...
...
@@ -1156,7 +1155,7 @@ static void inline_into(ir_graph *irg, unsigned maxsize,
* Note that recursive methods are never leafs, so it is
* sufficient to test this condition here.
*/
copy
=
create_irg_copy
(
callee
);
ir_graph
*
copy
=
create_irg_copy
(
callee
);
/* create_irg_copy() destroys the Proj links, recompute them */
phiproj_computed
=
false
;
...
...
@@ -1168,10 +1167,7 @@ static void inline_into(ir_graph *irg, unsigned maxsize,
set_irg_link
(
copy
,
callee_env
);
assure_irg_properties
(
copy
,
IR_GRAPH_PROPERTY_CONSISTENT_LOOPINFO
);
wenv_t
wenv
;
memset
(
&
wenv
,
0
,
sizeof
(
wenv
));
wenv
.
x
=
callee_env
;
wenv
.
ignore_callers
=
true
;
wenv_t
wenv
=
{
.
x
=
callee_env
,
.
ignore_callers
=
true
};
irg_walk_graph
(
copy
,
NULL
,
collect_calls2
,
&
wenv
);
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment