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
472a1a6a
Commit
472a1a6a
authored
May 10, 2006
by
Christian Würdig
Browse files
set default in to bad when spilling phis
parent
ba83c2b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bespill.c
View file @
472a1a6a
...
...
@@ -180,7 +180,6 @@ static ir_node *be_spill_irn(spill_env_t *senv, ir_node *irn, ir_node *ctx_irn)
static
ir_node
*
be_spill_phi
(
spill_env_t
*
senv
,
ir_node
*
phi
,
ir_node
*
ctx_irn
,
unsigned
visited_nr
,
set
*
already_visited_phis
)
{
int
i
,
n
=
get_irn_arity
(
phi
);
ir_graph
*
irg
=
senv
->
chordal_env
->
irg
;
ir_mode
*
phi_mode
=
get_irn_mode
(
phi
);
ir_node
*
bl
=
get_nodes_block
(
phi
);
ir_node
**
ins
,
*
phi_spill
;
phi_spill_assoc_t
key
;
...
...
@@ -192,7 +191,7 @@ static ir_node *be_spill_phi(spill_env_t *senv, ir_node *phi, ir_node *ctx_irn,
/* build a new PhiM */
NEW_ARR_A
(
ir_node
*
,
ins
,
n
);
for
(
i
=
0
;
i
<
n
;
++
i
)
{
ins
[
i
]
=
new_r
d_Unknown
(
irg
,
phi_mode
);
ins
[
i
]
=
new_r
_Bad
(
irg
);
}
phi_spill
=
new_r_Phi
(
senv
->
chordal_env
->
irg
,
bl
,
n
,
ins
,
mode_M
);
key
.
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