projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9941cf
)
Remove redundant operations from set_phi_arguments(): phi is always a Phi.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 14 May 2012 16:57:10 +0000
(18:57 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 14 May 2012 16:57:10 +0000
(18:57 +0200)
ir/ir/ircons.c
patch
|
blob
|
history
diff --git
a/ir/ir/ircons.c
b/ir/ir/ircons.c
index
273e3c1
..
fe976e2
100644
(file)
--- a/
ir/ir/ircons.c
+++ b/
ir/ir/ircons.c
@@
-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);