diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-08 21:32:09 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-09 12:31:45 +1100 |
| commit | 38447344f1f1dc3c3bb0cbcf361deee49e2f9828 (patch) | |
| tree | 3c219adb296d63dacaa7b4999bab6bdd309a00c7 /src/rustllvm/PassWrapper.cpp | |
| parent | b029a188205b704fed28d4fbe0037a453ace0ea1 (diff) | |
| download | rust-38447344f1f1dc3c3bb0cbcf361deee49e2f9828.tar.gz rust-38447344f1f1dc3c3bb0cbcf361deee49e2f9828.zip | |
arena: use the generic `bh.iter` to stop the benchmarks being DCE'd.
Before:
test test::bench_nonpod_nonarena ... bench: 62 ns/iter (+/- 6)
test test::bench_pod_nonarena ... bench: 0 ns/iter (+/- 0)
After:
test test::bench_nonpod_nonarena ... bench: 158 ns/iter (+/- 11)
test test::bench_pod_nonarena ... bench: 48 ns/iter (+/- 2)
The other tests show no change, but are adjusted to use the generic
return value of `.iter` anyway so that this doesn't change in future.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
