ia32_x87: remove the distinction between vfp and fp concepts
[libfirm] / ir / be / ia32 / ia32_finish.c
index 826af07..1e62ce5 100644 (file)
@@ -21,7 +21,6 @@
  * @file
  * @brief   This file implements functions to finalize the irg for emit.
  * @author  Christian Wuerdig
- * @version $Id$
  */
 #include "config.h"
 
@@ -109,9 +108,8 @@ static void ia32_transform_sub_to_neg_add(ir_node *irn)
                res = new_bd_ia32_xAdd(dbgi, block, noreg, noreg, nomem, res, in1);
                set_ia32_ls_mode(res, get_ia32_ls_mode(irn));
        } else {
-               ir_node         *flags_proj = NULL;
-               ir_node         *carry;
-               const ir_edge_t *edge;
+               ir_node *flags_proj = NULL;
+               ir_node *carry;
 
                if (get_irn_mode(irn) == mode_T) {
                        /* collect the Proj uses */
@@ -258,7 +256,6 @@ static void assure_should_be_same_requirements(ir_node *node)
                int                          same_pos;
                ir_node                     *uses_out_reg;
                const arch_register_req_t   *req = arch_get_irn_register_req_out(node, i);
-               const arch_register_class_t *cls;
                int                         uses_out_reg_pos;
 
                if (!arch_register_req_is(req, should_be_same))
@@ -274,8 +271,7 @@ static void assure_should_be_same_requirements(ir_node *node)
                /* requirement already fulfilled? */
                if (in_reg == out_reg)
                        continue;
-               cls = arch_register_get_class(in_reg);
-               assert(cls == arch_register_get_class(out_reg));
+               assert(in_reg->reg_class == out_reg->reg_class);
 
                /* check if any other input operands uses the out register */
                arity = get_irn_arity(node);