File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ patronus = { path = "../patronus" }
1414baa = {version = " 0.17.1" , features = [" bigint" ]}
1515rustc-hash.workspace = true
1616smallvec.workspace = true
17- polysub = " 0.2.2 "
17+ polysub = " 0.2.4 "
1818bit-set = " 0.8.0"
Original file line number Diff line number Diff line change @@ -92,17 +92,13 @@ pub fn backwards_sub(
9292 let var = expr_to_var ( e) ;
9393 if prev_uses == 1 && !input_vars. contains ( & var) {
9494 todo. push_back ( ( var, e) ) ;
95- } else if !seen. contains ( & e) {
96- // try phase opt
95+ } else {
9796 let old_size = spec. size ( ) ;
98- spec. invert ( var) ;
99- if spec. size ( ) > old_size {
97+ if spec. invert_size_change ( var) < 0 {
10098 spec. invert ( var) ;
101- } else {
10299 println ! ( "INVERTING {var} {old_size} -> {}" , spec. size( ) ) ;
103100 }
104101 }
105- seen. insert ( e) ;
106102 } ) ;
107103 }
108104 }
You can’t perform that action at this time.
0 commit comments