-/**
- * @file tropt.c
+/*
+ * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ *
+ * This file is part of libFirm.
*
- * Project: libFIRM
- * File name: ir/opt/tropt.c
- * Purpose: Optimize the type representation.
- * Author: Goetz Lindenmaier
- * Modified by:
- * Created: 20.4.2005
- * CVS-ID: $Id$
- * Copyright: (c) 2005 Universität Karlsruhe
- * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
+ * 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.
*
- * Perform optimizations of the type representation.
+ * 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.
+ */
+
+/**
+ * @file
+ * @brief Perform optimizations of the type representation.
+ * @date 20.4.2005
+ * @author Goetz Lindenmaier
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#include <assert.h>
-#include "tropt.h"
-
+#include "iroptimize.h"
#include "irprog.h"
-#include "mangle.h"
-
-#include "tr_inheritance.h"
#include "irtypeinfo.h"
#include "irgwalk.h"
#include "irsimpletype.h"
static void normalize_irn_class_cast(ir_node *n, void *env) {
ir_node *res;
+ (void) env;
if (get_irn_op(n) == op_Cast) {
ir_node *pred = get_Cast_op(n);
ir_type *totype = get_Cast_type(n);
* Post-Walker:
*/
static void irn_optimize_class_cast(ir_node *n, void *env) {
+ (void) env;
if (get_irn_op(n) == op_Cast)
cancel_out_casts(n);
else if (get_irn_op(n) == op_Sel)