split graph state into properties and constraints
[libfirm] / ir / opt / convopt.c
index e0ab3b5..872e893 100644 (file)
@@ -21,7 +21,6 @@
  * @file
  * @brief   conv node optimisation
  * @author  Matthias Braun, Christoph Mallon
- * @version $Id$
  *
  * Try to minimize the number of conv nodes by changing modes of operations.
  * The typical example is the following structure:
@@ -299,21 +298,12 @@ static void conv_opt_walker(ir_node *node, void *data)
 
        transformed = conv_transform(pred, mode);
        if (node != transformed) {
-               vrp_attr *vrp;
-
                exchange(node, transformed);
-               vrp = vrp_get_info(transformed);
-               if (vrp && vrp->valid) {
-                       vrp->range_type = VRP_VARYING;
-                       vrp->bits_set = tarval_convert_to(vrp->bits_set, mode);
-                       vrp->bits_not_set = tarval_convert_to(vrp->bits_not_set, mode);
-               }
-
                *changed = true;
        }
 }
 
-static ir_graph_state_t do_deconv(ir_graph *irg)
+static ir_graph_properties_t do_deconv(ir_graph *irg)
 {
        bool changed;
        FIRM_DBG_REGISTER(dbg, "firm.opt.conv");
@@ -331,7 +321,7 @@ static ir_graph_state_t do_deconv(ir_graph *irg)
 
 static optdesc_t opt_deconv = {
        "deconv",
-       IR_GRAPH_STATE_CONSISTENT_OUT_EDGES,
+       IR_GRAPH_PROPERTY_CONSISTENT_OUT_EDGES,
        do_deconv,
 };