projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2669742
)
simplified more
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 10 Sep 2008 01:09:23 +0000
(
01:09
+0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 10 Sep 2008 01:09:23 +0000
(
01:09
+0000)
[r21808]
ir/be/bearch.c
patch
|
blob
|
history
diff --git
a/ir/be/bearch.c
b/ir/be/bearch.c
index
e6dcabf
..
942e7f5
100644
(file)
--- a/
ir/be/bearch.c
+++ b/
ir/be/bearch.c
@@
-57,10
+57,10
@@
arch_env_t *arch_env_init(const arch_isa_if_t *isa_if, FILE *file_handle, be_mai
*/
static int arch_register_class_put(const arch_register_class_t *cls, bitset_t *bs)
{
- int i, n;
- for
(i = 0, n = cls->n_regs; i < n; ++
i)
+ int i, n
= cls->n_regs
;
+ for
(i = n - 1; i >= 0; --
i)
bitset_set(bs, i);
- return
cls->n_regs
;
+ return
n
;
}
/**