Commit 392debce authored by Christian Würdig's avatar Christian Würdig
Browse files

check for iro in is_NODE functions (saves a Load)

parent 0455964c
......@@ -88,7 +88,7 @@ foreach my $op (keys(%nodes)) {
push(@obst_opvar, "ir_op *op_$op = NULL;\n");
push(@obst_get_opvar, "ir_op *get_op_$op(void) { return op_$op; }\n");
push(@obst_get_opvar, "int is_$op(const ir_node *n) { return get_irn_op(n) == op_$op; }\n\n");
push(@obst_get_opvar, "int is_$op(const ir_node *n) { return get_irn_opcode(n) == iro_$op; }\n\n");
push(@obst_is_archirn, "is_$op(node)");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment