X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Ftropt.c;h=4dffe8c7ad4b4b552f73968d6234d2d7fa52b9d0;hb=aa18844cef9f7b879b1d9895b1a490d51960e2f1;hp=aecc3583cd9c428dc89605c2e7d2f6bd123643c6;hpb=eb08138c6b80c169945568e4414f491a9bc20388;p=libfirm diff --git a/ir/opt/tropt.c b/ir/opt/tropt.c index aecc3583c..4dffe8c7a 100644 --- a/ir/opt/tropt.c +++ b/ir/opt/tropt.c @@ -18,18 +18,11 @@ */ /** - * @file tropt.c - * - * 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 - * - * Perform optimizations of the type representation. + * @file + * @brief Perform optimizations of the type representation. + * @date 20.4.2005 + * @author Goetz Lindenmaier + * @version $Id$ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -37,12 +30,8 @@ #include -#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" @@ -175,6 +164,7 @@ static ir_node *normalize_values_type(ir_type *totype, ir_node *pred) { 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); @@ -406,6 +396,7 @@ void remove_Cmp_Null_cast(ir_node *cmp) { * 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)