@@ -5,8 +5,8 @@ use crate::backend::treeify::Trees;
55use crate :: cfg:: CFGInfo ;
66use crate :: entity:: { EntityVec , PerEntity } ;
77use crate :: ir:: { Block , FunctionBody , Local , Type , Value , ValueDef } ;
8+ use fxhash:: { FxHashMap as HashMap , FxHashSet as HashSet } ;
89use smallvec:: { smallvec, SmallVec } ;
9- use std:: collections:: { HashMap , HashSet } ;
1010use std:: ops:: Range ;
1111
1212#[ derive( Clone , Debug , Default ) ]
@@ -242,13 +242,13 @@ impl<'a> Context<'a> {
242242 ranges. sort_unstable_by_key ( |( val, range) | ( range. start , * val) ) ;
243243
244244 // Keep a list of expiring Locals by expiry point.
245- let mut expiring: HashMap < usize , SmallVec < [ ( Type , Local ) ; 8 ] > > = HashMap :: new ( ) ;
245+ let mut expiring: HashMap < usize , SmallVec < [ ( Type , Local ) ; 8 ] > > = HashMap :: default ( ) ;
246246
247247 // Iterate over allocation space, processing range starts (at
248248 // which point we allocate) and ends (at which point we add to
249249 // the freelist).
250250 let mut range_idx = 0 ;
251- let mut freelist: HashMap < Type , Vec < Local > > = HashMap :: new ( ) ;
251+ let mut freelist: HashMap < Type , Vec < Local > > = HashMap :: default ( ) ;
252252
253253 for i in 0 ..self . points {
254254 // Process ends. (Ends are exclusive, so we do them
0 commit comments