File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,10 @@ use rustc_span::symbol::sym;
38
38
use rustc_span:: Symbol ;
39
39
use rustc_target:: abi:: { Align , FIRST_VARIANT } ;
40
40
41
+ use std:: cmp;
41
42
use std:: collections:: BTreeSet ;
42
43
use std:: time:: { Duration , Instant } ;
43
44
44
- use itertools:: Itertools ;
45
-
46
45
pub fn bin_op_to_icmp_predicate ( op : hir:: BinOpKind , signed : bool ) -> IntPredicate {
47
46
match op {
48
47
hir:: BinOpKind :: Eq => IntPredicate :: IntEQ ,
@@ -674,10 +673,8 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
674
673
// are large size variations, this can reduce memory usage significantly.
675
674
let codegen_units: Vec < _ > = {
676
675
let mut sorted_cgus = codegen_units. iter ( ) . collect :: < Vec < _ > > ( ) ;
677
- sorted_cgus. sort_by_cached_key ( |cgu| cgu. size_estimate ( ) ) ;
678
-
679
- let ( first_half, second_half) = sorted_cgus. split_at ( sorted_cgus. len ( ) / 2 ) ;
680
- second_half. iter ( ) . rev ( ) . interleave ( first_half) . copied ( ) . collect ( )
676
+ sorted_cgus. sort_by_cached_key ( |cgu| cmp:: Reverse ( cgu. size_estimate ( ) ) ) ;
677
+ sorted_cgus
681
678
} ;
682
679
683
680
// Calculate the CGU reuse
Original file line number Diff line number Diff line change @@ -1030,7 +1030,7 @@ fn debug_dump<'a, 'tcx: 'a>(
1030
1030
}
1031
1031
} ;
1032
1032
1033
- eprintln ! ( "{}" , dump( ) ) ;
1033
+ debug ! ( "{}" , dump( ) ) ;
1034
1034
}
1035
1035
1036
1036
#[ inline( never) ] // give this a place in the profiler
You can’t perform that action at this time.
0 commit comments