diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-08 17:59:23 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-09 12:02:03 +1100 |
| commit | b029a188205b704fed28d4fbe0037a453ace0ea1 (patch) | |
| tree | 43257bf8f7e43619c3ae28acebb7847e67c9e4fa /src/rustllvm/PassWrapper.cpp | |
| parent | b60bed97918af43abe0b7d62f21c780d58042755 (diff) | |
| download | rust-b029a188205b704fed28d4fbe0037a453ace0ea1.tar.gz rust-b029a188205b704fed28d4fbe0037a453ace0ea1.zip | |
extra::test: add an opaque function to assist with accurate
benchmarking. This allows a result to be marked as "used" by passing it to a function LLVM cannot see inside. By making `iter` generic and using this `black_box` on the result benchmarks can get this behaviour simply by returning their computation.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
