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
001c643d
Commit
001c643d
authored
Oct 30, 2008
by
Michael Beck
Browse files
- reserve the IR_RESOURCE_PHI_LIST resource
[r23312]
parent
7275296e
Changes
4
Hide whitespace changes
Inline
Side-by-side
ir/ir/irgmod.c
View file @
001c643d
...
...
@@ -164,6 +164,8 @@ static void clear_node_and_phis_links(ir_node *n, void *env) {
}
void
collect_phiprojs
(
ir_graph
*
irg
)
{
assert
(
ir_resources_reserved
(
irg
)
&
(
IR_RESOURCE_IRN_LINK
|
IR_RESOURCE_PHI_LIST
)
==
(
IR_RESOURCE_IRN_LINK
|
IR_RESOURCE_PHI_LIST
));
irg_walk_graph
(
irg
,
clear_node_and_phis_links
,
collect_phiprojs_walker
,
NULL
);
}
...
...
ir/opt/boolopt.c
View file @
001c643d
...
...
@@ -453,7 +453,7 @@ void opt_bool(ir_graph *const irg)
{
irg_walk_graph
(
irg
,
NULL
,
bool_walk
,
NULL
);
ir_reserve_resources
(
irg
,
IR_RESOURCE_BLOCK_MARK
);
ir_reserve_resources
(
irg
,
IR_RESOURCE_BLOCK_MARK
|
IR_RESOURCE_PHI_LIST
);
irg_walk_graph
(
irg
,
clear_block_infos
,
collect_phis
,
NULL
);
...
...
@@ -464,5 +464,5 @@ void opt_bool(ir_graph *const irg)
set_irg_extblk_inconsistent
(
irg
);
set_irg_loopinfo_inconsistent
(
irg
);
ir_free_resources
(
irg
,
IR_RESOURCE_BLOCK_MARK
);
ir_free_resources
(
irg
,
IR_RESOURCE_BLOCK_MARK
|
IR_RESOURCE_PHI_LIST
);
}
ir/opt/combo.c
View file @
001c643d
...
...
@@ -3491,7 +3491,7 @@ void combo(ir_graph *irg) {
set_compute_functions
();
DEBUG_ONLY
(
part_nr
=
0
);
ir_reserve_resources
(
irg
,
IR_RESOURCE_IRN_LINK
);
ir_reserve_resources
(
irg
,
IR_RESOURCE_IRN_LINK
|
IR_RESOURCE_PHI_LIST
);
if
(
env
.
opt_unknown
)
tarval_UNKNOWN
=
tarval_top
;
...
...
@@ -3548,7 +3548,7 @@ void combo(ir_graph *irg) {
set_irg_loopinfo_inconsistent
(
irg
);
}
ir_free_resources
(
irg
,
IR_RESOURCE_IRN_LINK
);
ir_free_resources
(
irg
,
IR_RESOURCE_IRN_LINK
|
IR_RESOURCE_PHI_LIST
);
/* remove the partition hook */
DEBUG_ONLY
(
set_dump_node_vcgattr_hook
(
NULL
));
...
...
ir/opt/ifconv.c
View file @
001c643d
...
...
@@ -535,13 +535,13 @@ void opt_if_conv(ir_graph *irg, const ir_settings_if_conv_t *params)
compute_cdep
(
irg
);
assure_doms
(
irg
);
ir_reserve_resources
(
irg
,
IR_RESOURCE_BLOCK_MARK
);
ir_reserve_resources
(
irg
,
IR_RESOURCE_BLOCK_MARK
|
IR_RESOURCE_PHI_LIST
);
irg_block_walk_graph
(
irg
,
init_block_link
,
NULL
,
NULL
);
irg_walk_graph
(
irg
,
collect_phis
,
NULL
,
NULL
);
irg_block_walk_graph
(
irg
,
NULL
,
if_conv_walker
,
&
p
);
ir_free_resources
(
irg
,
IR_RESOURCE_BLOCK_MARK
);
ir_free_resources
(
irg
,
IR_RESOURCE_BLOCK_MARK
|
IR_RESOURCE_PHI_LIST
);
local_optimize_graph
(
irg
);
...
...
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