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
ee2b1b93
Commit
ee2b1b93
authored
Aug 14, 2009
by
Matthias Braun
Browse files
fix block message in register allocator verifier
[r26340]
parent
aa936e5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beverify.c
View file @
ee2b1b93
...
...
@@ -763,7 +763,7 @@ static void check_input_constraints(ir_node *node)
}
}
static
void
value_used
(
ir_node
*
node
)
{
static
void
value_used
(
ir_node
*
block
,
ir_node
*
node
)
{
const
arch_register_t
*
reg
;
ir_node
*
reg_node
;
...
...
@@ -777,7 +777,7 @@ static void value_used(ir_node *node) {
reg_node
=
registers
[
reg
->
index
];
if
(
reg_node
!=
NULL
&&
reg_node
!=
node
)
{
ir_fprintf
(
stderr
,
"Verify warning: Register %s assigned more than once in block %+F(%s) (nodes %+F %+F)
\n
"
,
reg
->
name
,
get_nodes_block
(
node
)
,
get_irg_dump_name
(
irg
),
reg
->
name
,
block
,
get_irg_dump_name
(
irg
),
node
,
reg_node
);
problem_found
=
1
;
}
...
...
@@ -825,7 +825,7 @@ static void verify_block_register_allocation(ir_node *block, void *data) {
be_lv_foreach
(
lv
,
block
,
be_lv_state_end
,
idx
)
{
ir_node
*
node
=
be_lv_get_irn
(
lv
,
block
,
idx
);
value_used
(
node
);
value_used
(
block
,
node
);
}
sched_foreach_reverse
(
block
,
node
)
{
...
...
@@ -850,7 +850,7 @@ static void verify_block_register_allocation(ir_node *block, void *data) {
arity
=
get_irn_arity
(
node
);
for
(
i2
=
0
;
i2
<
arity
;
++
i2
)
{
ir_node
*
use
=
get_irn_n
(
node
,
i2
);
value_used
(
use
);
value_used
(
block
,
use
);
}
}
}
...
...
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