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
5fee0ad2
Commit
5fee0ad2
authored
Oct 30, 2013
by
Matthias Braun
Browse files
revert last commit and go with ignore start-block-keep
parent
0d931fa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/execfreq.c
View file @
5fee0ad2
...
...
@@ -335,13 +335,14 @@ void ir_estimate_execfreq(ir_graph *irg)
* to end */
for
(
int
k
=
n_keepalives
-
1
;
k
>=
0
;
--
k
)
{
ir_node
*
keep
=
get_End_keepalive
(
end
,
k
);
if
(
!
is_Block
(
keep
)
||
has_path_to_end
(
keep
))
if
(
!
is_Block
(
keep
)
||
has_path_to_end
(
keep
)
||
keep
==
start_block
)
continue
;
double
sum
=
get_sum_succ_factors
(
keep
,
inv_loop_weight
);
double
fac
=
KEEP_FAC
/
sum
;
int
keep_idx
=
size
-
dfs_get_post_num
(
dfs
,
keep
)
-
1
;
gs_matrix_set
(
mat
,
idx
,
keep_idx
,
fac
);
gs_matrix_set
(
mat
,
start_
idx
,
keep_idx
,
fac
);
}
}
}
...
...
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