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 @@ -21,7 +21,6 @@ use crate::MirPass;
21
21
22
22
// These constants are somewhat random guesses and have not been optimized.
23
23
// If `tcx.sess.mir_opt_level() >= 4`, we ignore the limits (this can become very expensive).
24
- const BLOCK_LIMIT : usize = 100 ;
25
24
const PLACE_LIMIT : usize = 100 ;
26
25
27
26
pub struct ConstProp ;
@@ -34,10 +33,6 @@ impl<'tcx> MirPass<'tcx> for ConstProp {
34
33
#[ instrument( skip_all level = "debug" ) ]
35
34
fn run_pass ( & self , tcx : TyCtxt < ' tcx > , body : & mut Body < ' tcx > ) {
36
35
debug ! ( def_id = ?body. source. def_id( ) ) ;
37
- if tcx. sess . mir_opt_level ( ) < 4 && body. basic_blocks . len ( ) > BLOCK_LIMIT {
38
- debug ! ( "aborted dataflow const prop due too many basic blocks" ) ;
39
- return ;
40
- }
41
36
42
37
// We want to have a somewhat linear runtime w.r.t. the number of statements/terminators.
43
38
// 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