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
3522d558
Commit
3522d558
authored
May 14, 2012
by
Christoph Mallon
Browse files
Remove redundant operations from set_phi_arguments(): phi is always a Phi.
parent
a9941cf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/ircons.c
View file @
3522d558
...
...
@@ -232,13 +232,12 @@ static ir_node *set_phi_arguments(ir_node *phi, int pos)
phi
->
attr
.
phi
.
u
.
backedge
=
new_backedge_arr
(
irg
->
obst
,
arity
);
set_irn_in
(
phi
,
arity
,
in
);
set_irn_op
(
phi
,
op_Phi
);
irn_verify_irg
(
phi
,
irg
);
/* Memory Phis in endless loops must be kept alive.
As we can't distinguish these easily we keep all of them alive. */
if
(
is_Phi
(
phi
)
&&
mode
==
mode_M
)
if
(
mode
==
mode_M
)
add_End_keepalive
(
get_irg_end
(
irg
),
phi
);
try_remove_unnecessary_phi
(
phi
);
...
...
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