Don't add stack_addr intructions to prelude
Speeds up simple-raytracer by 30% (cc #684) Also reduces the size of the simple-raytracer binary from 9.2MB to 8.6MB
This commit is contained in:
parent
6127632c76
commit
1018a34662
@ -423,8 +423,7 @@ fn local_place<'tcx>(
|
||||
}
|
||||
}
|
||||
|
||||
// Take stack_addr in advance to avoid many duplicate instructions
|
||||
CPlace::for_addr(place.to_addr(fx), layout)
|
||||
place
|
||||
};
|
||||
|
||||
let prev_place = fx.local_map.insert(local, place);
|
||||
|
Loading…
x
Reference in New Issue
Block a user