summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMaximilian Stemmer-Grabow <mail@mxsg.de>2021-08-22 12:20:54 +0200
committerAndreas Fried <andreas.fried@kit.edu>2021-12-02 12:57:28 +0100
commit7a562aca51c910b11cc7d29d5863bae3a7e79829 (patch)
treed08fcec1f0ac1948eda50e25ed286d562578a2ad
parent89f5f620a1adb7b94be3a7099d27ef5b58a9ff00 (diff)
Add compiler options for compression-related parameters
-rw-r--r--ir/be/becopyheur4.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/ir/be/becopyheur4.c b/ir/be/becopyheur4.c
index be184bb..ba054c7 100644
--- a/ir/be/becopyheur4.c
+++ b/ir/be/becopyheur4.c
@@ -53,10 +53,11 @@ static firm_dbg_module_t *dbg = NULL;
#endif
static unsigned last_chunk_id;
-static int recolor_limit = 7;
-static double dislike_influence = 0.1;
+
+static int recolor_limit = 7;
+static double dislike_influence = 0.1;
static double compressibility_influence = 0.4;
-static double compression_cost_scale = 0.4;
+static double compression_cost_scale = 0.4;
typedef struct col_cost_t {
unsigned col;
@@ -1580,8 +1581,12 @@ static int co_solve_heuristic_mst(copy_opt_t *co)
}
static const lc_opt_table_entry_t options[] = {
- LC_OPT_ENT_INT("limit", "limit recoloring", &recolor_limit),
- LC_OPT_ENT_DBL("di", "dislike influence", &dislike_influence),
+
+ LC_OPT_ENT_INT("limit", "limit recoloring", &recolor_limit),
+ LC_OPT_ENT_DBL("di", "dislike influence", &dislike_influence),
+ LC_OPT_ENT_DBL("ci", "compressibility influence", &compressibility_influence),
+ LC_OPT_ENT_DBL("ccscale", "compression cost scale", &compression_cost_scale),
+
LC_OPT_LAST
};