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
4487702c
Commit
4487702c
authored
Apr 08, 2006
by
Michael Beck
Browse files
Fixed a nasty bug: wrong compare function was used
parent
c8e02ad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bestat.c
View file @
4487702c
...
...
@@ -10,17 +10,6 @@
#include "belive_t.h"
#include "besched.h"
/**
* Compare two live entries.
*/
static
int
cmp_irn_live
(
const
void
*
a
,
const
void
*
b
)
{
const
irn_live_t
*
p
=
a
;
const
irn_live_t
*
q
=
b
;
return
!
(
p
->
block
==
q
->
block
&&
p
->
irn
==
q
->
irn
);
}
/**
* Collect reg pressure statistics per block and per class.
*/
...
...
@@ -32,7 +21,7 @@ static void stat_reg_pressure_block(ir_node *block, void *env) {
for
(
i
=
0
;
i
<
n
;
i
++
)
{
const
arch_register_class_t
*
cls
=
arch_isa_get_reg_class
(
aenv
->
isa
,
i
);
ir_node
*
irn
;
pset
*
live_nodes
=
new_pset
(
cmp_irn_live
,
64
);
pset
*
live_nodes
=
pset_new_ptr
(
64
);
int
max_live
;
live_nodes
=
be_liveness_end_of_block
(
aenv
,
cls
,
block
,
live_nodes
);
...
...
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