Skip to content

Commit a125b62

Browse files
committed
[OPT] Don't force return value of call to stack
Benchmark #1: ./simple_raytracer_before Time (mean ± σ): 14.420 s ± 0.568 s [User: 14.376 s, System: 0.026 s] Range (min … max): 13.730 s … 15.170 s 10 runs Benchmark #2: simple_raytracer_after Time (mean ± σ): 13.679 s ± 0.576 s [User: 13.628 s, System: 0.020 s] Range (min … max): 12.761 s … 14.552 s 10 runs Summary './simple_raytracer_after' ran 1.05 ± 0.06 times faster than './simple_raytracer_before'
1 parent a528e37 commit a125b62

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/analyze.rs

-8
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ pub fn analyze(fx: &FunctionCx<'_, '_, impl Backend>) -> IndexVec<Local, SsaKind
3030
_ => {}
3131
}
3232
}
33-
34-
match &bb.terminator().kind {
35-
TerminatorKind::Call {
36-
destination: Some((place, _)),
37-
..
38-
} => analyze_non_ssa_place(&mut flag_map, place),
39-
_ => {}
40-
}
4133
}
4234

4335
flag_map

0 commit comments

Comments
 (0)