File tree 1 file changed +0
-5
lines changed
compiler/rustc_mir_transform/src
1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ use crate::MirPass;
23
23
24
24
// These constants are somewhat random guesses and have not been optimized.
25
25
// If `tcx.sess.mir_opt_level() >= 4`, we ignore the limits (this can become very expensive).
26
- const BLOCK_LIMIT : usize = 100 ;
27
26
const PLACE_LIMIT : usize = 100 ;
28
27
29
28
pub struct ConstProp ;
@@ -36,10 +35,6 @@ impl<'tcx> MirPass<'tcx> for ConstProp {
36
35
#[ instrument( skip_all level = "debug" ) ]
37
36
fn run_pass ( & self , tcx : TyCtxt < ' tcx > , body : & mut Body < ' tcx > ) {
38
37
debug ! ( def_id = ?body. source. def_id( ) ) ;
39
- if tcx. sess . mir_opt_level ( ) < 4 && body. basic_blocks . len ( ) > BLOCK_LIMIT {
40
- debug ! ( "aborted dataflow const prop due too many basic blocks" ) ;
41
- return ;
42
- }
43
38
44
39
// We want to have a somewhat linear runtime w.r.t. the number of statements/terminators.
45
40
// Let's call this number `n`. Dataflow analysis has `O(h*n)` transfer function
You can’t perform that action at this time.
0 commit comments