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
0cda2a07
Commit
0cda2a07
authored
May 16, 2015
by
Matthias Braun
Browse files
Fix profile code
parent
f9db3395
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/ir/irprofile.c
View file @
0cda2a07
...
@@ -315,7 +315,7 @@ static void instrument_irg(ir_graph *irg, ir_entity *counters, block_id_walker_d
...
@@ -315,7 +315,7 @@ static void instrument_irg(ir_graph *irg, ir_entity *counters, block_id_walker_d
/* connect the new memory nodes to the return nodes */
/* connect the new memory nodes to the return nodes */
ir_node
*
const
endbb
=
get_irg_end_block
(
irg
);
ir_node
*
const
endbb
=
get_irg_end_block
(
irg
);
for
(
int
i
=
get_Block_n_cfgpreds
(
endbb
);
i
!=
0
;)
{
for
(
unsigned
i
=
get_Block_n_cfgpreds
(
endbb
);
i
--
>
0
;)
{
ir_node
*
const
node
=
skip_Proj
(
get_Block_cfgpred
(
endbb
,
i
));
ir_node
*
const
node
=
skip_Proj
(
get_Block_cfgpred
(
endbb
,
i
));
ir_node
*
const
bb
=
get_Block_cfgpred_block
(
endbb
,
i
);
ir_node
*
const
bb
=
get_Block_cfgpred_block
(
endbb
,
i
);
if
(
bb
==
NULL
)
if
(
bb
==
NULL
)
...
@@ -342,7 +342,7 @@ static void instrument_irg(ir_graph *irg, ir_entity *counters, block_id_walker_d
...
@@ -342,7 +342,7 @@ static void instrument_irg(ir_graph *irg, ir_entity *counters, block_id_walker_d
/* as well as calls with attribute noreturn */
/* as well as calls with attribute noreturn */
ir_node
*
const
end
=
get_irg_end
(
irg
);
ir_node
*
const
end
=
get_irg_end
(
irg
);
for
(
int
i
=
get_End_n_keepalives
(
end
);
i
--
!=
0
;)
{
for
(
unsigned
i
=
get_End_n_keepalives
(
end
);
i
--
>
0
;)
{
ir_node
*
node
=
get_End_keepalive
(
end
,
i
);
ir_node
*
node
=
get_End_keepalive
(
end
,
i
);
if
(
is_Call
(
node
))
{
if
(
is_Call
(
node
))
{
ir_node
*
const
bb
=
get_nodes_block
(
node
);
ir_node
*
const
bb
=
get_nodes_block
(
node
);
...
...
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