Commit 4ad58f47 authored by qinsoon's avatar qinsoon

turn off invariants check (otherwise some benchmarks run extremely slow)

parent 552aede8
...@@ -26,9 +26,15 @@ use utils::LinkedHashSet; ...@@ -26,9 +26,15 @@ use utils::LinkedHashSet;
use utils::LinkedHashMap; use utils::LinkedHashMap;
use compiler::backend::reg_alloc::graph_coloring::liveness::Move; use compiler::backend::reg_alloc::graph_coloring::liveness::Move;
/// allows coalescing
const COALESCING: bool = true; const COALESCING: bool = true;
const MAX_REWRITE_ITERATIONS_ALLOWED: usize = 10; /// abort after N rewrite iterations
const CHECK_INVARIANTS: bool = true; /// (this is used to detect any possible infinite loop due to bugs)
const MAX_REWRITE_ITERATIONS_ALLOWED: usize = 50;
/// check invariants in every loop
/// (this will make register allocation run extremely slow - be careful
/// when using this with large workloads)
const CHECK_INVARIANTS: bool = false;
/// GraphColoring algorithm /// GraphColoring algorithm
/// based on Appel's book section 11.4 /// based on Appel's book section 11.4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment