summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMaximilian Stemmer-Grabow <mail@mxsg.de>2021-07-22 17:34:02 +0200
committerAndreas Fried <andreas.fried@kit.edu>2021-12-02 12:57:28 +0100
commit1640c71bbee9c11ea7d531ad408035ecae911e8c (patch)
treeedf3e708bad61b4638aaa1b82ef979d574c2db04
parente11796b0ffc2ff0ec42c963859935ca8d409f804 (diff)
Add reversed cost comparison function
-rw-r--r--ir/be/becopyheur4.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir/be/becopyheur4.c b/ir/be/becopyheur4.c
index c2b2749..e19ad58 100644
--- a/ir/be/becopyheur4.c
+++ b/ir/be/becopyheur4.c
@@ -358,6 +358,11 @@ static int cmp_col_cost_gt(const void *a, const void *b)
return QSORT_CMP(c1->col, c2->col);
}
+static int cmp_col_cost_lt(const void *a, const void *b)
+{
+ return cmp_col_cost_gt(b, a);
+}
+
/**
* Creates a new affinity chunk
*/