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
3fc36574
Commit
3fc36574
authored
Nov 27, 2008
by
Christoph Mallon
Browse files
Emit a block header for the start block of functions.
[r24085]
parent
b46379ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
3fc36574
...
...
@@ -1932,7 +1932,7 @@ static void ia32_emit_block_header(ir_node *block)
int
i
,
arity
;
ir_exec_freq
*
exec_freq
=
cg
->
birg
->
exec_freq
;
if
(
block
==
get_irg_end_block
(
irg
)
||
block
==
get_irg_start_block
(
irg
)
)
if
(
block
==
get_irg_end_block
(
irg
))
return
;
if
(
ia32_cg_config
.
label_alignment
>
0
)
{
...
...
@@ -1977,12 +1977,16 @@ static void ia32_emit_block_header(ir_node *block)
/* emit list of pred blocks in comment */
arity
=
get_irn_arity
(
block
);
for
(
i
=
0
;
i
<
arity
;
++
i
)
{
ir_node
*
predblock
=
get_Block_cfgpred_block
(
block
,
i
);
be_emit_irprintf
(
" %d"
,
get_irn_node_nr
(
predblock
));
if
(
arity
<=
0
)
{
be_emit_cstring
(
" none"
);
}
else
{
for
(
i
=
0
;
i
<
arity
;
++
i
)
{
ir_node
*
predblock
=
get_Block_cfgpred_block
(
block
,
i
);
be_emit_irprintf
(
" %d"
,
get_irn_node_nr
(
predblock
));
}
}
if
(
exec_freq
!=
NULL
)
{
be_emit_irprintf
(
" freq: %f"
,
be_emit_irprintf
(
"
,
freq: %f"
,
get_block_execfreq
(
exec_freq
,
block
));
}
be_emit_cstring
(
" */
\n
"
);
...
...
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