Skip to content

Commit b175437

Browse files
committed
Tweak CGU order.
1 parent 8b4b208 commit b175437

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_ssa/src

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
665665
sorted_cgus.sort_by_cached_key(|cgu| cgu.size_estimate());
666666

667667
let (first_half, second_half) = sorted_cgus.split_at(sorted_cgus.len() / 2);
668-
second_half.iter().rev().interleave(first_half).copied().collect()
668+
first_half.iter().interleave(second_half.iter().rev()).copied().collect()
669669
};
670670

671671
// Calculate the CGU reuse

0 commit comments

Comments
 (0)