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:
bjorn3 2019-08-28 17:59:48 +02:00
parent 6127632c76
commit 1018a34662

View File

@ -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);