1
+ use std:: collections:: HashMap ;
1
2
use std:: ops:: RangeInclusive ;
2
3
3
4
/// Holds the range of acceptable values to use during the generation of testcases
@@ -54,6 +55,11 @@ pub struct Config {
54
55
/// We insert a checking sequence to guarantee that those inputs never make
55
56
/// it to the instruction, but sometimes we want to allow them.
56
57
pub allowed_fcvt_traps_ratio : ( usize , usize ) ,
58
+
59
+ /// Some flags really impact compile performance, we still want to test
60
+ /// them, but probably at a lower rate, so that overall execution time isn't
61
+ /// impacted as much
62
+ pub compile_flag_ratio : HashMap < & ' static str , ( usize , usize ) > ,
57
63
}
58
64
59
65
impl Default for Config {
@@ -79,6 +85,7 @@ impl Default for Config {
79
85
backwards_branch_ratio : ( 1 , 1000 ) ,
80
86
allowed_int_divz_ratio : ( 1 , 1_000_000 ) ,
81
87
allowed_fcvt_traps_ratio : ( 1 , 1_000_000 ) ,
88
+ compile_flag_ratio : [ ( "regalloc_checker" , ( 1usize , 100 ) ) ] . into_iter ( ) . collect ( ) ,
82
89
}
83
90
}
84
91
}
0 commit comments