File tree 1 file changed +1
-22
lines changed
1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ use alloc::{
4
4
format,
5
5
rc:: Rc ,
6
6
string:: { String , ToString } ,
7
- vec:: Vec ,
8
7
} ;
9
8
10
9
use compact_str:: { CompactString , ToCompactString } ;
@@ -53,27 +52,7 @@ impl TryFrom<&Options> for IRPrintingConfig {
53
52
type Error = Report ;
54
53
55
54
fn try_from ( options : & Options ) -> Result < Self , Self :: Error > {
56
- let available_passes = [
57
- "canonicalizer" ,
58
- "control-flow-sink" ,
59
- "lift-control-flow" ,
60
- "sink-operand-defs" ,
61
- "sparse-conditional-constant-propagation" ,
62
- "transform-spills" ,
63
- ] ;
64
-
65
- let pass_filters: Vec < _ > = {
66
- let invalid_pass = options
67
- . print_ir_after_pass
68
- . iter ( )
69
- . find ( |pass| !available_passes. contains ( & pass. as_str ( ) ) ) ;
70
-
71
- if let Some ( invalid_pass) = invalid_pass {
72
- Err ( Report :: msg ( format ! ( "'{invalid_pass}' unrecognized pass." ) ) )
73
- } else {
74
- Ok ( options. print_ir_after_pass . clone ( ) )
75
- }
76
- } ?;
55
+ let pass_filters = options. print_ir_after_pass . clone ( ) ;
77
56
78
57
if options. print_ir_after_all && !pass_filters. is_empty ( ) {
79
58
return Err ( Report :: msg (
You can’t perform that action at this time.
0 commit comments