about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-02-08 21:32:09 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-02-09 12:31:45 +1100
commit38447344f1f1dc3c3bb0cbcf361deee49e2f9828 (patch)
tree3c219adb296d63dacaa7b4999bab6bdd309a00c7 /src/rustllvm/PassWrapper.cpp
parentb029a188205b704fed28d4fbe0037a453ace0ea1 (diff)
downloadrust-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