projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9ca3b9
)
becopyheur2: Use rbitset_copy_to_bitset().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 15 Dec 2012 15:48:37 +0000
(16:48 +0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 15 Dec 2012 21:05:20 +0000
(22:05 +0100)
ir/be/becopyheur2.c
patch
|
blob
|
history
diff --git
a/ir/be/becopyheur2.c
b/ir/be/becopyheur2.c
index
517ec8d
..
0c8f258
100644
(file)
--- a/
ir/be/becopyheur2.c
+++ b/
ir/be/becopyheur2.c
@@
-249,13
+249,7
@@
static inline bitset_t *get_adm(co2_t *env, co2_irn_t *ci)
req = arch_get_irn_register_req(ci->irn);
if (arch_register_req_is(req, limited)) {
- int i, n;
-
- n = env->n_regs;
- for (i = 0; i < n; ++i) {
- if (rbitset_is_set(req->limited, i))
- bitset_set(ci->adm_cache, i);
- }
+ rbitset_copy_to_bitset(req->limited, ci->adm_cache);
} else {
bitset_copy(ci->adm_cache, env->allocatable_regs);
}