From da0e1dafc4933d6cd5339b1e8688453273dfebef Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Tue, 18 Dec 2012 09:47:48 +0100 Subject: [PATCH] bearch: Remove unnecessary test in arch_perform_memory_operand(). When arch_perform_memory_operand() returned a positive result before, there really should be a callback to actually perform the action. --- ir/be/bearch.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ir/be/bearch.c b/ir/be/bearch.c index 0989ab8f2..89257c4ff 100644 --- a/ir/be/bearch.c +++ b/ir/be/bearch.c @@ -84,12 +84,7 @@ int arch_possible_memory_operand(const ir_node *irn, unsigned int i) void arch_perform_memory_operand(ir_node *irn, ir_node *spill, unsigned int i) { const arch_irn_ops_t *ops = get_irn_ops(irn); - - if (ops->perform_memory_operand) { - ops->perform_memory_operand(irn, spill, i); - } else { - return; - } + ops->perform_memory_operand(irn, spill, i); } int arch_get_op_estimated_cost(const ir_node *irn) -- 2.20.1