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
9091dbe0
Commit
9091dbe0
authored
Dec 05, 2012
by
Christoph Mallon
Browse files
gvn_pre: Remove redundant start block test.
The next if tests for less than 2 predecessors, which the start block fulfills.
parent
4ef694e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/gvn_pre.c
View file @
9091dbe0
...
...
@@ -1575,7 +1575,8 @@ static void update_new_set_walker(ir_node *block, void *ctx)
*/
static
void
hoist_high
(
ir_node
*
block
,
void
*
ctx
)
{
pre_env
*
env
=
(
pre_env
*
)
ctx
;
(
void
)
ctx
;
block_info
*
curr_info
;
ir_valueset_iterator_t
iter
;
ir_node
*
expr
;
...
...
@@ -1591,9 +1592,6 @@ static void hoist_high(ir_node *block, void *ctx)
ir_valueset_del
(
curr_info
->
new_set
);
curr_info
->
new_set
=
ir_valueset_new
(
16
);
if
(
block
==
env
->
start_block
)
return
;
if
(
arity
<
2
)
return
;
...
...
@@ -1925,7 +1923,7 @@ static void gvn_pre(ir_graph *irg, pre_env *env)
#if HOIST_HIGH
/* An attempt to reduce lifetimes by hoisting already hoisted values
even higher if their operands die. */
dom_tree_walk_irg
(
irg
,
hoist_high
,
NULL
,
env
);
dom_tree_walk_irg
(
irg
,
hoist_high
,
NULL
,
NULL
);
/* update avail_out for elimination */
dom_tree_walk_irg
(
irg
,
update_new_set_walker
,
NULL
,
env
);
#endif
...
...
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