projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8805e4f
)
Bugfix
author
Daniel Grund
<grund@cs.uni-saarland.de>
Tue, 23 Aug 2005 12:49:44 +0000
(12:49 +0000)
committer
Daniel Grund
<grund@cs.uni-saarland.de>
Tue, 23 Aug 2005 12:49:44 +0000
(12:49 +0000)
ir/be/bechordal_draw.c
patch
|
blob
|
history
diff --git
a/ir/be/bechordal_draw.c
b/ir/be/bechordal_draw.c
index
4163273
..
3448520
100644
(file)
--- a/
ir/be/bechordal_draw.c
+++ b/
ir/be/bechordal_draw.c
@@
-20,7
+20,7
@@
#include "irgwalk.h"
#include "irprintf.h"
-#include "ir
outs
.h"
+#include "ir
edges_t
.h"
#include "belive_t.h"
#include "bechordal_t.h"
@@
-278,9
+278,10
@@
static color_t *reg_to_color(const draw_chordal_env_t *env,
ir_node *rel_bl, ir_node *irn, color_t *color)
{
int i, n, phi_arg = 0;
+ const ir_edge_t *edge;
- for
(i = 0, n = get_irn_n_outs(irn); i < n && !phi_arg; ++i
)
- phi_arg |= is_Phi(
get_irn_out(irn, i)
);
+ for
each_out_edge(irn, edge
)
+ phi_arg |= is_Phi(
edge->src
);
#if 1
color->r = is_Phi(irn) ? 0.5 : 0.0;