Skip to content

Commit 4062999

Browse files
committed
Don't force RETURN_PLACE to stack
Speeds up simple-raytracer by 7% (cc #684)
1 parent b9dc950 commit 4062999

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/analyze.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ pub fn analyze(fx: &FunctionCx<'_, '_, impl Backend>) -> HashMap<Local, Flags> {
1515
flag_map.insert(local, Flags::empty());
1616
}
1717

18-
not_ssa(&mut flag_map, RETURN_PLACE);
19-
2018
for (local, local_decl) in fx.mir.local_decls.iter_enumerated() {
2119
if fx.clif_type(local_decl.ty).is_none() {
2220
not_ssa(&mut flag_map, local);

0 commit comments

Comments
 (0)