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
1a737419
Commit
1a737419
authored
Oct 16, 2014
by
Christoph Mallon
Browse files
be: Remove pointless null pointer tests.
The operands of the anchor cannot be null.
parent
a1029ca7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/betranshlp.c
View file @
1a737419
...
...
@@ -308,9 +308,6 @@ static void transform_nodes(ir_graph *irg, arch_pretrans_nodes *pre_transform)
/* put all anchor nodes in the worklist */
for
(
int
i
=
get_irg_n_anchors
(
irg
)
-
1
;
i
>=
0
;
--
i
)
{
ir_node
*
anchor
=
get_irg_anchor
(
irg
,
i
);
if
(
anchor
==
NULL
)
continue
;
waitq_put
(
env
.
worklist
,
anchor
);
}
...
...
@@ -347,10 +344,6 @@ static void transform_nodes(ir_graph *irg, arch_pretrans_nodes *pre_transform)
inc_irg_visited
(
irg
);
for
(
int
i
=
get_irg_n_anchors
(
irg
)
-
1
;
i
>=
0
;
--
i
)
{
ir_node
*
anchor
=
get_irn_n
(
old_anchor
,
i
);
if
(
anchor
==
NULL
)
continue
;
anchor
=
(
ir_node
*
)
get_irn_link
(
anchor
);
fix_loops
(
anchor
);
set_irn_n
(
new_anchor
,
i
,
anchor
);
...
...
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