Skip to content

Commit 89e6aa3

Browse files
Auto merge of #147052 - cjgillot:sso-mir-patch, r=<try>
Use SsoHashMap in MirPatch.
2 parents 5b9007b + e5e2699 commit 89e6aa3

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+2
-2
lines changed

compiler/rustc_mir_transform/src/patch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use rustc_data_structures::fx::FxHashMap;
1+
use rustc_data_structures::sso::SsoHashMap;
22
use rustc_index::Idx;
33
use rustc_middle::mir::*;
44
use rustc_middle::ty::Ty;
@@ -10,7 +10,7 @@ use tracing::debug;
1010
/// and replacement of terminators, and then apply the queued changes all at
1111
/// once with `apply`. This is useful for MIR transformation passes.
1212
pub(crate) struct MirPatch<'tcx> {
13-
term_patch_map: FxHashMap<BasicBlock, TerminatorKind<'tcx>>,
13+
term_patch_map: SsoHashMap<BasicBlock, TerminatorKind<'tcx>>,
1414
new_blocks: Vec<BasicBlockData<'tcx>>,
1515
new_statements: Vec<(Location, StatementKind<'tcx>)>,
1616
new_locals: Vec<LocalDecl<'tcx>>,

0 commit comments

Comments
 (0)