]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #98817 - the8472:dont-optimize-ui-tests, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Mon, 4 Jul 2022 12:32:39 +0000 (12:32 +0000)
committerbors <bors@rust-lang.org>
Mon, 4 Jul 2022 12:32:39 +0000 (12:32 +0000)
Only obey optimize-tests flag on UI tests that are run-pass

stage1 UI tests walltime on my machine:

```
optimize-tests = false, master
25.98s

optimize-tests = true, master
34.69s

optimize-tests = true, patched
28.79s
```

Effects:

- faster UI tests
- llvm asserts get exercised less on build-pass tests
- the difference between opt and nopt builds shrinks a bit
- aux libs don't get optimized since they don't have a pass mode and almost never have explicit compile flags

1  2 
src/tools/compiletest/src/runtest.rs

Simple merge