diff options
| author | lcnr <rust@lcnr.de> | 2022-05-24 09:22:24 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-05-25 07:40:38 +0200 |
| commit | bff7b5130d49da7c86d688843292c10b82a4e6a0 (patch) | |
| tree | d87c08d76572f005112a6fa98cccca2ff09aeaa5 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | a76277c6c4cd7f175efd2d86477447bd6577aea2 (diff) | |
| download | rust-bff7b5130d49da7c86d688843292c10b82a4e6a0.tar.gz rust-bff7b5130d49da7c86d688843292c10b82a4e6a0.zip | |
move fast reject test out of `SelectionContext::match_impl`.
`match_impl` has two call sites. For one of them (within `rematch_impl`) the fast reject test isn't necessary, because any rejection would represent a compiler bug. This commit moves the fast reject test to the other `match_impl` call site, in `assemble_candidates_from_impls`. This lets us move the fast reject test outside the `probe` call in that function. This avoids the taking of useless snapshots when the fast reject test succeeds, which gives a performance win when compiling the `bitmaps` and `nalgebra` crates. Co-authored-by: name <n.nethercote@gmail.com>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
