summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bedump.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-27 20:37:53 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-27 21:15:42 +0200
commit8d14210e48e14de3b1d7bca00df590ca92700e0b (patch)
treec6657537705165b724bd831735fb80723f8edb49 /ir/be/bedump.c
parent4652701dd62546a5a9fbcafddb990784e3493631 (diff)
be: Give the none register requirement a register class.
Now register requirements always have have a register class. This is more consistent and removes some null pointer checks.
Diffstat (limited to 'ir/be/bedump.c')
-rw-r--r--ir/be/bedump.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ir/be/bedump.c b/ir/be/bedump.c
index 500f775..abb25c7 100644
--- a/ir/be/bedump.c
+++ b/ir/be/bedump.c
@@ -146,11 +146,6 @@ static void dump_register_req(FILE *const F, arch_register_req_t const *const re
}
arch_register_class_t const *const cls = req->cls;
- if (!cls) {
- fputs("none", F);
- return;
- }
-
fputs(cls->name, F);
if (req->limited != NULL) {
@@ -166,7 +161,7 @@ static void dump_register_req(FILE *const F, arch_register_req_t const *const re
if (req->must_be_different != 0)
dump_bitmask(F, " different from", req->must_be_different);
- if (req->width != 1)
+ if (req->width > 1)
fprintf(F, " width:%d", req->width);
if (req->aligned)
fputs(" aligned", F);