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
848b0f5e
Commit
848b0f5e
authored
May 10, 2006
by
Christian Würdig
Browse files
compute dominance information because they are used in transform
parent
0a8f53bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/bearch_ia32.c
View file @
848b0f5e
...
...
@@ -497,6 +497,7 @@ ia32_irn_ops_t ia32_irn_ops = {
*/
static
void
ia32_prepare_graph
(
void
*
self
)
{
ia32_code_gen_t
*
cg
=
self
;
dom_front_info_t
*
dom
;
DEBUG_ONLY
(
firm_dbg_module_t
*
old_mod
=
cg
->
mod
;)
FIRM_DBG_REGISTER
(
cg
->
mod
,
"firm.be.ia32.transform"
);
...
...
@@ -506,7 +507,9 @@ static void ia32_prepare_graph(void *self) {
/* 2nd: transform all remaining nodes */
ia32_register_transformers
();
dom
=
be_compute_dominance_frontiers
(
cg
->
irg
);
irg_walk_blkwise_graph
(
cg
->
irg
,
NULL
,
ia32_transform_node
,
cg
);
be_free_dominance_frontiers
(
dom
);
be_dump
(
cg
->
irg
,
"-transformed"
,
dump_ir_block_graph_sched
);
/* 3rd: optimize address mode */
...
...
@@ -616,7 +619,7 @@ insert_copy:
ia32_transform_sub_to_neg_add
(
irn
,
cg
);
/* transform a LEA into an Add if possible */
//
ia32_transform_lea_to_add(irn, cg);
ia32_transform_lea_to_add
(
irn
,
cg
);
}
end:
...
...
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