From ece5619fece003e030bbf55b13f9285b4cc0e260 Mon Sep 17 00:00:00 2001 From: qinsoon Date: Fri, 3 Nov 2017 13:25:36 +1100 Subject: [PATCH] set COPY_WEIGHT to 0 --- src/compiler/backend/reg_alloc/graph_coloring/liveness.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/backend/reg_alloc/graph_coloring/liveness.rs b/src/compiler/backend/reg_alloc/graph_coloring/liveness.rs index 1c3a561e..8ef294e6 100644 --- a/src/compiler/backend/reg_alloc/graph_coloring/liveness.rs +++ b/src/compiler/backend/reg_alloc/graph_coloring/liveness.rs @@ -165,7 +165,7 @@ impl InterferenceGraph { fn spillcost_heuristic(ty: NodeType, loop_depth: usize) -> f32 { const DEF_WEIGHT: f32 = 1f32; const USE_WEIGHT: f32 = 1f32; - const COPY_WEIGHT: f32 = 2f32; + const COPY_WEIGHT: f32 = 0f32; let loop_depth = loop_depth as i32; -- 2.21.0