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
9711085f
Commit
9711085f
authored
Apr 07, 2008
by
Michael Beck
Browse files
- optimize Tuple nodes away before calling scalar replacement
[r19163]
parent
47b007ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/opt_inline.c
View file @
9711085f
...
...
@@ -1995,9 +1995,14 @@ void inline_functions(int inline_threshold) {
set_irg_doms_inconsistent
(
irg
);
set_irg_loopinfo_inconsistent
(
irg
);
if
(
env
->
local_vars
)
scalar_replacement_opt
(
irg
);
/* scalar replacement does not work well with Tuple nodes, so optimize them away */
optimize_graph_df
(
irg
);
if
(
env
->
local_vars
)
{
if
(
scalar_replacement_opt
(
irg
))
optimize_graph_df
(
irg
);
}
optimize_cf
(
irg
);
}
if
(
env
->
got_inline
||
(
env
->
n_callers_orig
!=
env
->
n_callers
))
{
...
...
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