diff --git a/src/front/spv/mod.rs b/src/front/spv/mod.rs index 36108fdd9b..5fd54b023f 100644 --- a/src/front/spv/mod.rs +++ b/src/front/spv/mod.rs @@ -40,7 +40,7 @@ use function::*; use crate::{ arena::{Arena, Handle, UniqueArena}, proc::{Alignment, Layouter}, - FastHashMap, FastHashSet, + FastHashMap, FastHashSet, FastIndexMap, }; use num_traits::cast::FromPrimitive; @@ -596,11 +596,7 @@ pub struct Frontend { /// use that target block id. /// /// Used to preserve allocations between instruction parsing. - switch_cases: indexmap::IndexMap< - spirv::Word, - (BodyIndex, Vec), - std::hash::BuildHasherDefault, - >, + switch_cases: FastIndexMap)>, /// Tracks access to gl_PerVertex's builtins, it is used to cull unused builtins since initializing those can /// affect performance and the mere presence of some of these builtins might cause backends to error since they @@ -641,7 +637,7 @@ impl> Frontend { dummy_functions: Arena::new(), function_call_graph: GraphMap::new(), options: options.clone(), - switch_cases: indexmap::IndexMap::default(), + switch_cases: FastIndexMap::default(), gl_per_vertex_builtin_access: FastHashSet::default(), } }