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
7dce86f2
Commit
7dce86f2
authored
Dec 13, 2006
by
Christian Würdig
Browse files
removed assertion (spill value can have another class than reload)
added some spaces
parent
aa6e37f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bespillslots.c
View file @
7dce86f2
...
@@ -187,27 +187,27 @@ static spill_t *collect_memphi(ss_env_t *env, ir_node *node) {
...
@@ -187,27 +187,27 @@ static spill_t *collect_memphi(ss_env_t *env, ir_node *node) {
* and memphis attached to them.
* and memphis attached to them.
*/
*/
static
void
collect_spills_walker
(
ir_node
*
node
,
void
*
data
)
{
static
void
collect_spills_walker
(
ir_node
*
node
,
void
*
data
)
{
ss_env_t
*
env
=
data
;
ss_env_t
*
env
=
data
;
const
arch_env_t
*
arch_env
=
env
->
arch_env
;
const
arch_env_t
*
arch_env
=
env
->
arch_env
;
/
/
classify returns classification of the irn the proj is attached to
/
*
classify returns classification of the irn the proj is attached to
*/
if
(
is_Proj
(
node
))
if
(
is_Proj
(
node
))
return
;
return
;
if
(
arch_irn_class_is
(
arch_env
,
node
,
reload
))
{
if
(
arch_irn_class_is
(
arch_env
,
node
,
reload
))
{
ir_node
*
spillnode
=
get_memory_edge
(
node
);
ir_node
*
spillnode
=
get_memory_edge
(
node
);
spill_t
*
spill
;
spill_t
*
spill
;
assert
(
spillnode
!=
NULL
);
assert
(
spillnode
!=
NULL
);
if
(
is_Phi
(
spillnode
))
{
if
(
is_Phi
(
spillnode
))
{
spill
=
collect_memphi
(
env
,
spillnode
);
spill
=
collect_memphi
(
env
,
spillnode
);
}
else
{
}
else
{
spill
=
collect_spill
(
env
,
spillnode
);
spill
=
collect_spill
(
env
,
spillnode
);
}
}
assert
(
!
be_is_Reload
(
node
)
||
spill
->
cls
==
arch_get_irn_reg_class
(
arch_env
,
node
,
-
1
));
ARR_APP1
(
ir_node
*
,
env
->
reloads
,
node
);
ARR_APP1
(
ir_node
*
,
env
->
reloads
,
node
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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