Skip to content

Commit 1018a34

Browse files
committed
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
1 parent 6127632 commit 1018a34

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/abi.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,7 @@ fn local_place<'tcx>(
423423
}
424424
}
425425

426-
// Take stack_addr in advance to avoid many duplicate instructions
427-
CPlace::for_addr(place.to_addr(fx), layout)
426+
place
428427
};
429428

430429
let prev_place = fx.local_map.insert(local, place);

0 commit comments

Comments
 (0)