Commit e6a83641 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ia32: Remove remaining three optimisation statistics.

Most others were unused and removed already.
These three were used, but lost their meaning long ago when the users of the others were removed.
parent e5f34c68
......@@ -443,7 +443,6 @@ EXTRA_DIST += \
be/ia32/ia32_address_mode.h \
be/ia32/ia32_architecture.h \
be/ia32/ia32_common_transform.h \
be/ia32/ia32_dbg_stat.h \
be/ia32/ia32_emitter.h \
be/ia32/ia32_finish.h \
be/ia32/ia32_fpu.h \
......
......@@ -53,13 +53,13 @@
#include "lower_mode_b.h"
#include "lower_softfloat.h"
#include "panic.h"
#include "util.h"
#include "xmalloc.h"
#include "gen_ia32_regalloc_if.h"
#include "ia32_architecture.h"
#include "ia32_cconv.h"
#include "ia32_common_transform.h"
#include "ia32_dbg_stat.h"
#include "ia32_emitter.h"
#include "ia32_finish.h"
#include "ia32_fpu.h"
......
/*
* This file is part of libFirm.
* Copyright (C) 2012 University of Karlsruhe.
*/
/**
* @file
* @brief This file contains macros to update ia32 firm statistics.
* @author Christian Wuerdig
*/
#ifndef FIRM_BE_IA32_IA32_DBG_STAT_H
#define FIRM_BE_IA32_IA32_DBG_STAT_H
#include "irhooks.h"
#include "dbginfo_t.h"
#include "firmstat.h"
#include "util.h"
/**
* A Copy was created to fulfill two address code constraints
*
* @param cpy the copy
*/
#define DBG_OPT_2ADDRCPY(cpy) \
do { \
hook_merge_nodes(NULL, 0, &cpy, 1, (hook_opt_kind)FS_BE_IA32_2ADDRCPY); \
} while(0)
/**
* A Sub was transformed into Neg-Add due to 2 address code limitations
*
* @param sub the old Sub
* @param nadd the new Add
*/
#define DBG_OPT_SUB2NEGADD(sub, nadd) \
do { \
hook_merge_nodes(&nadd, 1, &sub, 1, (hook_opt_kind)FS_BE_IA32_SUB2NEGADD); \
__dbg_info_merge_pair(nadd, sub, dbg_backend); \
} while(0)
/**
* A Lea was transformed back into an Add
*
* @param lea the old Lea
* @param nadd the new Add
*/
#define DBG_OPT_LEA2ADD(lea, nadd) \
do { \
hook_merge_nodes(&nadd, 1, &lea, 1, (hook_opt_kind)FS_BE_IA32_LEA2ADD); \
__dbg_info_merge_pair(nadd, lea, dbg_backend); \
} while(0)
#endif
......@@ -26,7 +26,6 @@
#include "ia32_new_nodes.h"
#include "ia32_common_transform.h"
#include "ia32_transform.h"
#include "ia32_dbg_stat.h"
#include "ia32_optimize.h"
#include "gen_ia32_regalloc_if.h"
......@@ -187,8 +186,6 @@ carry:;
/* remove the old sub */
kill_node(irn);
DBG_OPT_SUB2NEGADD(irn, res);
}
static inline int need_constraint_copy(ir_node *irn)
......@@ -279,7 +276,6 @@ static void assure_should_be_same_requirements(ir_node *node)
* anyway) */
if (uses_out_reg == NULL) {
ir_node *copy = be_new_Copy(block, in_node);
DBG_OPT_2ADDRCPY(copy);
/* destination is the out register */
arch_set_irn_register(copy, out_reg);
......
......@@ -34,7 +34,6 @@
#include "gen_ia32_regalloc_if.h"
#include "ia32_common_transform.h"
#include "ia32_transform.h"
#include "ia32_dbg_stat.h"
#include "ia32_architecture.h"
DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
......@@ -959,9 +958,6 @@ make_shl:
exchange:
SET_IA32_ORIG_NODE(res, node);
/* add new ADD/SHL to schedule */
DBG_OPT_LEA2ADD(node, res);
/* exchange the Add and the LEA */
sched_add_before(node, res);
copy_mark(node, res);
......
......@@ -43,11 +43,11 @@
#include "ia32_architecture.h"
#include "ia32_cconv.h"
#include "ia32_common_transform.h"
#include "ia32_dbg_stat.h"
#include "ia32_new_nodes.h"
#include "ia32_nodes_attr.h"
#include "ia32_optimize.h"
#include "ia32_transform.h"
#include "util.h"
#include "x86_address_mode.h"
/* define this to construct SSE constants instead of load them */
......
......@@ -157,9 +157,6 @@ enum firmstat_optimizations_t {
FS_OPT_RTS_MEMMOVE, /**< RTS optimization: call to memmove() replaced */
FS_OPT_RTS_MEMSET, /**< RTS optimization: call to memset() replaced */
FS_OPT_RTS_MEMCMP, /**< RTS optimization: call to memcmp() replaced */
FS_BE_IA32_2ADDRCPY, /**< Copy created due to 2-Addresscode constraints */
FS_BE_IA32_SUB2NEGADD, /**< Created Neg-Add for a Sub due to 2-Addresscode constraints */
FS_BE_IA32_LEA2ADD, /**< Transformed Lea back into Add */
FS_OPT_MAX
};
......
......@@ -147,9 +147,6 @@ static const struct {
{ (hook_opt_kind)FS_OPT_RTS_MEMMOVE, "RTS optimization: call to memmove() replaced" },
{ (hook_opt_kind)FS_OPT_RTS_MEMSET, "RTS optimization: call to memset() replaced" },
{ (hook_opt_kind)FS_OPT_RTS_MEMCMP, "RTS optimization: call to memcmp() replaced" },
{ (hook_opt_kind)FS_BE_IA32_2ADDRCPY, "ia32 Backend transformation: Copy created due to 2-Addresscode constraints" },
{ (hook_opt_kind)FS_BE_IA32_SUB2NEGADD, "ia32 Backend transformation: Created Neg-Add for a Sub due to 2-Addresscode constraints" },
{ (hook_opt_kind)FS_BE_IA32_LEA2ADD, "ia32 Backend transformation: Transformed Lea back into Add" },
};
static const char *if_conv_names[IF_RESULT_LAST] = {
......
......@@ -394,10 +394,6 @@ SOURCE=..\ir\be\ia32\ia32_architecture.h
# End Source File
# Begin Source File
SOURCE=..\ir\be\ia32\ia32_dbg_stat.h
# End Source File
# Begin Source File
SOURCE=..\ir\be\ia32\ia32_emitter.c
# End Source File
# Begin Source File
......
......@@ -562,7 +562,6 @@
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_address_mode.h"/>
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_architecture.h"/>
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_common_transform.h"/>
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_dbg_stat.h"/>
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_emitter.h"/>
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_finish.h"/>
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_fpu.h"/>
......
......@@ -1467,9 +1467,6 @@
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_common_transform.h">
<Filter>ir\be\ia32</Filter>
</ClInclude>
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_dbg_stat.h">
<Filter>ir\be\ia32</Filter>
</ClInclude>
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_emitter.h">
<Filter>ir\be\ia32</Filter>
</ClInclude>
......@@ -6549,9 +6546,6 @@
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_common_transform.h">
<Filter>ir\be\ia32</Filter>
</ClInclude>
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_dbg_stat.h">
<Filter>ir\be\ia32</Filter>
</ClInclude>
<ClInclude Include="$(FirmRoot)\ir\be\ia32\ia32_emitter.h">
<Filter>ir\be\ia32</Filter>
</ClInclude>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment