Commit 16f103b2 authored by qinsoon's avatar qinsoon

make copy has same spill cost as def/use

parent 7f1c3933
......@@ -162,7 +162,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 = 0.5f32;
const COPY_WEIGHT: f32 = 1f32;
let loop_depth = loop_depth as i32;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment