]> git.lizzy.rs Git - rust.git/commitdiff
Don't force RETURN_PLACE to stack
authorbjorn3 <bjorn3@users.noreply.github.com>
Wed, 28 Aug 2019 13:29:10 +0000 (15:29 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Wed, 28 Aug 2019 13:29:10 +0000 (15:29 +0200)
Speeds up simple-raytracer by 7% (cc #684)

src/analyze.rs

index f4624221ca88cf9dbb645886acac1ef4780c29b9..2adaa0b71823188d55a4bf9e1854178885e2e0b8 100644 (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);