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
38609dc9
Commit
38609dc9
authored
Nov 15, 2014
by
Matthias Braun
Browse files
Remove a few pointless tests
parent
4bfcfc08
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode.c
View file @
38609dc9
...
...
@@ -381,10 +381,6 @@ op_pin_state (get_irn_pinned)(const ir_node *node)
void
set_irn_pinned
(
ir_node
*
node
,
op_pin_state
state
)
{
/* due to optimization an opt may be turned into a Tuple */
if
(
is_Tuple
(
node
))
return
;
assert
(
get_op_pinned
(
get_irn_op
(
node
))
>=
op_pin_state_exc_pinned
);
assert
(
state
==
op_pin_state_pinned
||
state
==
op_pin_state_floats
);
...
...
@@ -775,25 +771,15 @@ ir_graph *(get_irn_irg)(const ir_node *node)
ir_node
*
skip_Proj
(
ir_node
*
node
)
{
/* don't assert node !!! */
if
(
node
==
NULL
)
return
NULL
;
if
(
is_Proj
(
node
))
node
=
get_Proj_pred
(
node
);
return
node
;
}
const
ir_node
*
skip_Proj_const
(
const
ir_node
*
node
)
{
/* don't assert node !!! */
if
(
node
==
NULL
)
return
NULL
;
if
(
is_Proj
(
node
))
node
=
get_Proj_pred
(
node
);
return
node
;
}
...
...
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