summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bearch.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-03-21 14:10:10 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-03-21 14:10:55 +0100
commit35093541d98be38944c77818bfa2663d590e0968 (patch)
tree70cb63e72a14b857a7993a0a2a3423d65d9d58aa /ir/be/bearch.c
parentacad1b054639456ae36364d9c84827d3d9eef2e5 (diff)
be: Move 'ignore' check into 'be_create_reg_req()'.
Diffstat (limited to 'ir/be/bearch.c')
-rw-r--r--ir/be/bearch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ir/be/bearch.c b/ir/be/bearch.c
index f5a47e0..1e6f5e5 100644
--- a/ir/be/bearch.c
+++ b/ir/be/bearch.c
@@ -160,6 +160,9 @@ int be_default_is_valid_clobber(char const *const clobber)
arch_register_req_t const *be_create_reg_req(ir_graph *const irg, arch_register_t const *const reg, bool const ignore)
{
+ if (!ignore)
+ return reg->single_req;
+
struct obstack *const obst = be_get_be_obst(irg);
arch_register_class_t const *const cls = reg->cls;
unsigned *const limited = rbitset_obstack_alloc(obst, cls->n_regs);