about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-05-24 09:22:24 +0200
committerlcnr <rust@lcnr.de>2022-05-25 07:40:38 +0200
commitbff7b5130d49da7c86d688843292c10b82a4e6a0 (patch)
treed87c08d76572f005112a6fa98cccca2ff09aeaa5 /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parenta76277c6c4cd7f175efd2d86477447bd6577aea2 (diff)
downloadrust-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 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions