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

stat: Remove unused ia32 stat entries.

parent 3ce0e6db
......@@ -16,146 +16,6 @@
#include "firmstat.h"
#include "util.h"
/**
* Merge the debug info due to a LEA creation.
*
* @param oldn the node
* @param n the new lea
*/
#define DBG_OPT_LEA1(oldn, n) \
do { \
hook_merge_nodes(&n, 1, &oldn, 1, FS_BE_IA32_LEA); \
__dbg_info_merge_pair(n, oldn, dbg_backend); \
} while(0)
/**
* Merge the debug info due to a LEA creation.
*
* @param oldn the node
* @param n the new lea
*/
#define DBG_OPT_LEA1(oldn, n) \
do { \
hook_merge_nodes(&n, 1, &oldn, 1, FS_BE_IA32_LEA); \
__dbg_info_merge_pair(n, oldn, dbg_backend); \
} while(0)
/**
* Merge the debug info due to a LEA creation.
*
* @param oldn1 the old node
* @param oldn2 an additional old node
* @param n the new lea
*/
#define DBG_OPT_LEA2(oldn1, oldn2, n) \
do { \
ir_node *ons[2]; \
ons[0] = oldn1; \
ons[1] = oldn2; \
hook_merge_nodes(&n, 1, ons, ARRAY_SIZE(ons), FS_BE_IA32_LEA); \
__dbg_info_merge_sets(&n, 1, ons, ARRAY_SIZE(ons), dbg_backend); \
} while(0)
/**
* Merge the debug info due to a LEA creation.
*
* @param oldn1 the old node
* @param oldn2 an additional old node
* @param oldn3 an additional old node
* @param n the new lea
*/
#define DBG_OPT_LEA3(oldn1, oldn2, oldn3, n) \
do { \
ir_node *ons[3]; \
ons[0] = oldn1; \
ons[1] = oldn2; \
ons[2] = oldn3; \
hook_merge_nodes(&n, 1, ons, ARRAY_SIZE(ons), FS_BE_IA32_LEA); \
__dbg_info_merge_sets(&n, 1, ons, ARRAY_SIZE(ons), dbg_backend); \
} while(0)
/**
* Merge the debug info due to a LEA creation.
*
* @param oldn1 the old node
* @param oldn2 an additional old node
* @param oldn3 an additional old node
* @param oldn4 an additional old node
* @param n the new lea
*/
#define DBG_OPT_LEA4(oldn1, oldn2, oldn3, oldn4, n) \
do { \
ir_node *ons[4]; \
ons[0] = oldn1; \
ons[1] = oldn2; \
ons[2] = oldn3; \
ons[3] = oldn4; \
hook_merge_nodes(&n, 1, ons, ARRAY_SIZE(ons), FS_BE_IA32_LEA); \
__dbg_info_merge_sets(&n, 1, ons, ARRAY_SIZE(ons), dbg_backend); \
} while(0)
/**
* Merge the debug info due to a Load with LEA creation.
*
* @param oldn the lea
* @param n the new load
*/
#define DBG_OPT_LOAD_LEA(oldn, n) \
do { \
hook_merge_nodes(&n, 1, &oldn, 1, (hook_opt_kind)FS_BE_IA32_LOAD_LEA); \
__dbg_info_merge_pair(n, oldn, dbg_backend); \
} while(0)
/**
* Merge the debug info due to a Store with LEA creation.
*
* @param oldn the lea
* @param n the new store
*/
#define DBG_OPT_STORE_LEA(oldn, n) \
do { \
hook_merge_nodes(&n, 1, &oldn, 1, (hook_opt_kind)FS_BE_IA32_STORE_LEA); \
__dbg_info_merge_pair(n, oldn, dbg_backend); \
} while(0)
/**
* Merge the debug info due to a source address mode creation.
*
* @param oldn the old load
* @param n the new op
*/
#define DBG_OPT_AM_S(oldn, n) \
do { \
hook_merge_nodes(&n, 1, &oldn, 1, (hook_opt_kind)FS_BE_IA32_AM_S); \
__dbg_info_merge_pair(n, oldn, dbg_backend); \
} while(0)
/**
* Merge the debug info due to a destination address mode creation.
*
* @param load the old load
* @param store the old store
* @param n the new op
*/
#define DBG_OPT_AM_D(load, store, n) \
do { \
ir_node *ons[2]; \
ons[0] = load; \
ons[1] = store; \
hook_merge_nodes(&n, 1, ons, ARRAY_SIZE(ons), FS_BE_IA32_AM_D); \
__dbg_info_merge_sets(&n, 1, ons, ARRAY_SIZE(ons), dbg_backend); \
} while(0)
/**
* A CJmp was created to save a cmp
*
* @param oldn the old node
*/
#define DBG_OPT_CJMP(oldn) \
do { \
hook_merge_nodes(NULL, 0, &oldn, 1, FS_BE_IA32_CJMP); \
} while(0)
/**
* A Copy was created to fulfill two address code constraints
*
......@@ -166,30 +26,6 @@
hook_merge_nodes(NULL, 0, &cpy, 1, (hook_opt_kind)FS_BE_IA32_2ADDRCPY); \
} while(0)
/**
* A Store was created for a Spill
*
* @param spill the Spill
* @param store the Store
*/
#define DBG_OPT_SPILL2ST(spill, store) \
do { \
hook_merge_nodes(&store, 1, &spill, 1, (hook_opt_kind)FS_BE_IA32_SPILL2ST); \
__dbg_info_merge_pair(store, spill, dbg_backend); \
} while(0)
/**
* A Load was created for a Reload
*
* @param rload the Reload
* @param load the Load
*/
#define DBG_OPT_RELOAD2LD(rload, load) \
do { \
hook_merge_nodes(&load, 1, &rload, 1, (hook_opt_kind)FS_BE_IA32_RELOAD2LD); \
__dbg_info_merge_pair(load, rload, dbg_backend); \
} while(0)
/**
* A Sub was transformed into Neg-Add due to 2 address code limitations
*
......
......@@ -157,15 +157,7 @@ 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_LEA, /**< Lea was created */
FS_BE_IA32_LOAD_LEA, /**< Load merged with a Lea */
FS_BE_IA32_STORE_LEA, /**< Store merged with a Lea */
FS_BE_IA32_AM_S, /**< Source address mode node created */
FS_BE_IA32_AM_D, /**< Destination address mode node created */
FS_BE_IA32_CJMP, /**< CJmp created to save a cmp/test */
FS_BE_IA32_2ADDRCPY, /**< Copy created due to 2-Addresscode constraints */
FS_BE_IA32_SPILL2ST, /**< Created Store for a Spill */
FS_BE_IA32_RELOAD2LD, /**< Created Load for a Reload */
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,15 +147,7 @@ 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_LEA, "ia32 Backend transformation: Lea was created" },
{ (hook_opt_kind)FS_BE_IA32_LOAD_LEA, "ia32 Backend transformation: Load merged with a Lea" },
{ (hook_opt_kind)FS_BE_IA32_STORE_LEA, "ia32 Backend transformation: Store merged with a Lea" },
{ (hook_opt_kind)FS_BE_IA32_AM_S, "ia32 Backend transformation: Source address mode node created" },
{ (hook_opt_kind)FS_BE_IA32_AM_D, "ia32 Backend transformation: Destination address mode node created" },
{ (hook_opt_kind)FS_BE_IA32_CJMP, "ia32 Backend transformation: CJmp created to save a cmp/test" },
{ (hook_opt_kind)FS_BE_IA32_2ADDRCPY, "ia32 Backend transformation: Copy created due to 2-Addresscode constraints" },
{ (hook_opt_kind)FS_BE_IA32_SPILL2ST, "ia32 Backend transformation: Created Store for a Spill" },
{ (hook_opt_kind)FS_BE_IA32_RELOAD2LD, "ia32 Backend transformation: Created Load for a Reload" },
{ (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" },
};
......
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