change global optdesc declarations to static
[libfirm] / ir / opt / convopt.c
index 6ead5fd..e0ab3b5 100644 (file)
@@ -56,7 +56,7 @@
 #include "vrp.h"
 #include "opt_manage.h"
 
-DEBUG_ONLY(static firm_dbg_module_t *dbg);
+DEBUG_ONLY(static firm_dbg_module_t *dbg;)
 
 static inline int imin(int a, int b) { return a < b ? a : b; }
 
@@ -316,7 +316,6 @@ static void conv_opt_walker(ir_node *node, void *data)
 static ir_graph_state_t do_deconv(ir_graph *irg)
 {
        bool changed;
-       bool invalidate = false;
        FIRM_DBG_REGISTER(dbg, "firm.opt.conv");
 
        DB((dbg, LEVEL_1, "===> Performing conversion optimization on %+F\n", irg));
@@ -325,13 +324,12 @@ static ir_graph_state_t do_deconv(ir_graph *irg)
                changed = false;
                irg_walk_graph(irg, NULL, conv_opt_walker, &changed);
                local_optimize_graph(irg);
-               invalidate |= changed;
        } while (changed);
 
        return 0;
 }
 
-optdesc_t opt_deconv = {
+static optdesc_t opt_deconv = {
        "deconv",
        IR_GRAPH_STATE_CONSISTENT_OUT_EDGES,
        do_deconv,