becopyheur4: Clean up co_mst_irn_init().
[libfirm] / ir / opt / local.c
index cd679e7..f606f9a 100644 (file)
@@ -1,20 +1,6 @@
 /*
- * Copyright (C) 2011 Karlsruhe Institute of Technology.  All right reserved.
- *
  * This file is part of libFirm.
- *
- * This file may be distributed and/or modified under the terms of the
- * GNU General Public License version 2 as published by the Free Software
- * Foundation and appearing in the file LICENSE.GPL included in the
- * packaging of this file.
- *
- * Licensees holding valid libFirm Professional Edition licenses may use
- * this file in accordance with the libFirm Commercial License.
- * Agreement provided with the Software.
- *
- * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
- * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE.
+ * Copyright (C) 2012 Karlsruhe Institute of Technology.
  */
 
 /**
@@ -23,21 +9,8 @@
  */
 #include <config.h>
 #include "irgopt.h"
-#include "opt_manage.h"
-
-static ir_graph_properties_t do_optimize_graph_df(ir_graph *irg)
-{
-       optimize_graph_df(irg);
-       return 0;
-}
-
-static optdesc_t opt_local = {
-       "localopts",
-       0, // TODO optimize_graph_df handles preconditions itself
-       do_optimize_graph_df,
-};
 
 void local_opts(ir_graph *irg)
 {
-       perform_irg_optimization(irg, &opt_local);
+       optimize_graph_df(irg);
 }