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
74c0b452
Commit
74c0b452
authored
Sep 10, 2010
by
Matthias Braun
Browse files
remove normalize_proj_nodes, Projs aren't in the wrong place anyway (or the verifier complains)
[r27989]
parent
200a8fc7
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/libfirm/irgraph.h
View file @
74c0b452
...
...
@@ -539,9 +539,6 @@ FIRM_API void clear_irg_state(ir_graph *irg, ir_graph_state_t state);
/** query wether a set of graph state flags are activated */
FIRM_API
int
is_irg_state
(
const
ir_graph
*
irg
,
ir_graph_state_t
state
);
/** Normalization: Move Proj nodes into the same block as its predecessors */
FIRM_API
void
normalize_proj_nodes
(
ir_graph
*
irg
);
/** Set a description for local value n. */
FIRM_API
void
set_irg_loc_description
(
ir_graph
*
irg
,
int
n
,
void
*
description
);
...
...
ir/be/bemain.c
View file @
74c0b452
...
...
@@ -447,9 +447,6 @@ static void initialize_birg(be_irg_t *birg, ir_graph *irg, be_main_env_t *env)
/* set the current graph (this is important for several firm functions) */
current_ir_graph
=
irg
;
/* Normalize proj nodes. */
normalize_proj_nodes
(
irg
);
/* we do this before critical edge split. As this produces less returns,
because sometimes (= 164.gzip) multiple returns are slower */
normalize_n_returns
(
irg
);
...
...
ir/ir/irgraph.c
View file @
74c0b452
...
...
@@ -906,31 +906,6 @@ void set_irg_fp_model(ir_graph *irg, unsigned model)
irg
->
fp_model
=
model
;
}
/**
* walker Start->End: places Proj nodes into the same block
* as it's predecessors
*
* @param n the node
* @param env ignored
*/
static
void
normalize_proj_walker
(
ir_node
*
n
,
void
*
env
)
{
(
void
)
env
;
if
(
is_Proj
(
n
))
{
ir_node
*
pred
=
get_Proj_pred
(
n
);
ir_node
*
block
=
get_nodes_block
(
pred
);
set_nodes_block
(
n
,
block
);
}
}
/* move Proj nodes into the same block as its predecessors */
void
normalize_proj_nodes
(
ir_graph
*
irg
)
{
irg_walk_graph
(
irg
,
NULL
,
normalize_proj_walker
,
NULL
);
set_irg_outs_inconsistent
(
irg
);
}
/* set a description for local value n */
void
set_irg_loc_description
(
ir_graph
*
irg
,
int
n
,
void
*
description
)
{
...
...
ir/opt/gvn_pre.c
View file @
74c0b452
...
...
@@ -815,10 +815,6 @@ void do_gvn_pre(ir_graph *irg)
a_env
.
end_block
=
get_irg_end_block
(
irg
);
a_env
.
pairs
=
NULL
;
/* Move Proj's into the same block as their args,
else we would assign the result to wrong blocks */
normalize_proj_nodes
(
irg
);
/* critical edges MUST be removed */
remove_critical_cf_edges
(
irg
);
...
...
Write
Preview
Supports
Markdown
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