Don't force RETURN_PLACE to stack

Speeds up simple-raytracer by 7% (cc #684)
This commit is contained in:
bjorn3 2019-08-28 15:29:10 +02:00
parent b9dc950a11
commit 40629999bc

View file

@ -15,8 +15,6 @@ pub fn analyze(fx: &FunctionCx<'_, '_, impl Backend>) -> HashMap<Local, Flags> {
flag_map.insert(local, Flags::empty());
}
not_ssa(&mut flag_map, RETURN_PLACE);
for (local, local_decl) in fx.mir.local_decls.iter_enumerated() {
if fx.clif_type(local_decl.ty).is_none() {
not_ssa(&mut flag_map, local);