summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bearch.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-28 11:17:33 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-31 16:34:42 +0100
commitc59fdbffaab25f117ca95c66e61cd61642cd07c4 (patch)
treec6d8f7fb958e0c05c248201725f255a83b312296 /ir/be/bearch.c
parent7fa631ea386d996ad51c7f238bb3deff178ce3f5 (diff)
be: Remove arch_possible_memory_operand().
Just do the check in the corresponding implementation of arch_perform_memory_operand().
Diffstat (limited to 'ir/be/bearch.c')
-rw-r--r--ir/be/bearch.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/ir/be/bearch.c b/ir/be/bearch.c
index d2b7252..dab6934 100644
--- a/ir/be/bearch.c
+++ b/ir/be/bearch.c
@@ -56,21 +56,11 @@ int arch_get_sp_bias(ir_node *irn)
return ops->get_sp_bias(irn);
}
-int arch_possible_memory_operand(const ir_node *irn, unsigned int i)
-{
- const arch_irn_ops_t *ops = get_irn_ops(irn);
-
- if (ops->possible_memory_operand) {
- return ops->possible_memory_operand(irn, i);
- } else {
- return 0;
- }
-}
-
void arch_perform_memory_operand(ir_node *irn, unsigned int i)
{
const arch_irn_ops_t *ops = get_irn_ops(irn);
- ops->perform_memory_operand(irn, i);
+ if (ops->perform_memory_operand)
+ ops->perform_memory_operand(irn, i);
}
int arch_get_op_estimated_cost(const ir_node *irn)