diff options
author | Jason Ekstrand <[email protected]> | 2014-10-03 18:08:12 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2014-10-24 16:23:08 -0700 |
commit | f84adb848161bd0a23b26edc0c136489dd2d38da (patch) | |
tree | c34498af79f3dd1d0a7d00e6f3e0a06f9ce83a86 | |
parent | 701f739d7fa1bc2d56dac41ac1f7f3ec8969544d (diff) |
util: Use reg_belongs_to_class instead of BITSET_TEST
This shouldn't be a functional change since reg_belongs_to_class is just a
wrapper around BITSET_TEST. It just makes the code a little easier to
read.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
-rw-r--r-- | src/util/register_allocate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c index afab9ddd31d..6cf7ce721ed 100644 --- a/src/util/register_allocate.c +++ b/src/util/register_allocate.c @@ -335,7 +335,7 @@ ra_set_finalize(struct ra_regs *regs, unsigned int **q_values) for (i = 0; i < regs->regs[rc].num_conflicts; i++) { unsigned int rb = regs->regs[rc].conflict_list[i]; - if (BITSET_TEST(regs->classes[b]->regs, rb)) + if (reg_belongs_to_class(rb, regs->classes[b])) conflicts++; } max_conflicts = MAX2(max_conflicts, conflicts); |