about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-13 14:24:14 +0000
committerbors <bors@rust-lang.org>2022-07-13 14:24:14 +0000
commita45d6ef779c0828094e186aba8dfa9f056111e29 (patch)
tree35adda3163efad0672449e5f5f4dc3081c16582c /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parentdb5a2b97475166626e4c7680844f47f5347e9bc3 (diff)
parent7d9f04f7a8b3ef3c0e00a50e58f86fa8d8cf34ea (diff)
downloadrust-a45d6ef779c0828094e186aba8dfa9f056111e29.tar.gz
rust-a45d6ef779c0828094e186aba8dfa9f056111e29.zip
Auto merge of #2352 - saethlin:new-benchmark, r=RalfJung
Add a benchmark of the hang-on-test-failure code path

This is the code pattern that produces the performance problem in https://github.com/rust-lang/miri/issues/2273

I figured out what I was stuck on in https://github.com/rust-lang/miri/pull/2315#discussion_r916387919. For a while I was just doing `let x: &[u8] = &[0u8; 4096];` but that doesn't produce the runtime inside `Stack::item_popped` that I was looking for, I think because this allocation is never deallocated. But with `Vec`, I get the profile I'm looking for.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions