From: Christoph Mallon Date: Tue, 27 Nov 2012 15:14:55 +0000 (+0100) Subject: ia32: Simply return the class_req in ia32_make_register_req(), when possible. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=9f90e73178e695062ad259293c918d6bba130cd8;p=libfirm ia32: Simply return the class_req in ia32_make_register_req(), when possible. --- diff --git a/ir/be/ia32/ia32_common_transform.c b/ir/be/ia32/ia32_common_transform.c index 4ed18fe26..5b8247db0 100644 --- a/ir/be/ia32/ia32_common_transform.c +++ b/ir/be/ia32/ia32_common_transform.c @@ -808,14 +808,12 @@ static arch_register_req_t const *ia32_make_register_req(constraint_t const *con req->type = arch_register_req_type_limited; *limited_ptr = constraint->allowed_registers; req->limited = limited_ptr; + req->cls = constraint->cls; + req->width = 1; + return req; } else { - req = OALLOCZ(obst, arch_register_req_t); - req->type = arch_register_req_type_normal; + return constraint->cls->class_req; } - req->cls = constraint->cls; - req->width = 1; - - return req; } const arch_register_req_t *ia32_parse_clobber(const char *clobber)