projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetic Changes
[libfirm]
/
ir
/
be
/
bearch.c
diff --git
a/ir/be/bearch.c
b/ir/be/bearch.c
index
198b4a5
..
013376c
100644
(file)
--- a/
ir/be/bearch.c
+++ b/
ir/be/bearch.c
@@
-97,8
+97,10
@@
int arch_get_allocatable_regs(const arch_env_t *env, const ir_node *irn,
return 0;
}
return 0;
}
- if(arch_register_req_is(req, limited))
- return req->limited(irn, pos, bs);
+ if(arch_register_req_is(req, limited)) {
+ req->limited(irn, pos, bs);
+ return bitset_popcnt(bs);
+ }
arch_register_class_put(req->cls, bs);
return req->cls->n_regs;
arch_register_class_put(req->cls, bs);
return req->cls->n_regs;