summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-04-22 21:53:07 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-04-22 21:53:07 (GMT)
commit9c1367eb2e75dfac59f33e851dee8d39542072ac (patch)
treedd999e736e12c47d9d0b90808451d14c6279a85d /src/core
parenta2979604ebaa3d564908f13e4f9ab345fca0ff28 (diff)
Shared target operands in memory when possible.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/processors.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/processors.c b/src/core/processors.c
index 193cd25..6de2c09 100644
--- a/src/core/processors.c
+++ b/src/core/processors.c
@@ -30,6 +30,7 @@
#include "../arch/immediate.h"
+#include "../arch/target.h"
#include "../arch/arm/v7/core.h"
#include "../arch/arm/v7/processor.h"
#include "../arch/dalvik/core.h"
@@ -143,6 +144,7 @@ bool load_hard_coded_processors_definitions(void)
bool result; /* Bilan à retourner */
result = init_imm_operand_sharing();
+ result &= init_target_operand_sharing();
result &= register_processor_type("armv7", "ARM v7", G_TYPE_ARMV7_PROCESSOR,
#ifdef DEBUG_DUMP_STATS
@@ -195,6 +197,7 @@ void unload_processors_definitions(void)
_processors_definitions = NULL;
_processors_definitions_count = 0;
+ exit_target_operand_sharing();
exit_imm_operand_sharing();
G_UNLOCK(_pdef_access);
@@ -323,6 +326,7 @@ void display_share_stats(GArchProcessor *proc)
G_LOCK(_pdef_access);
dump_imm_operand_share_stats();
+ dump_target_operand_share_stats();
for (i = 0; i < _processors_definitions_count; i++)
if (_processors_definitions[i].instance == type)