Rearrange some struct fields to work better with u64_key/u128_key
This allows the compiler to load the whole key with 1 or 2 64-bit accesses, assuming little-endian ordering. Improves instruction count by ~1%.
This commit is contained in:
@@ -133,7 +133,7 @@ pub fn run<F: Function>(
|
||||
edits: env
|
||||
.edits
|
||||
.into_iter()
|
||||
.map(|(pos, _, edit)| (ProgPoint::from_index(pos), edit))
|
||||
.map(|(pos_prio, edit)| (pos_prio.pos, edit))
|
||||
.collect(),
|
||||
allocs: env.allocs,
|
||||
inst_alloc_offsets: env.inst_alloc_offsets,
|
||||
|
||||
Reference in New Issue
Block a user