[llvm-exegesis] Fix 'min' repetition mode in presence of missing measurements
authorRoman Lebedev <lebedev.ri@gmail.com>
Sun, 18 Dec 2022 14:49:34 +0000 (17:49 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sun, 18 Dec 2022 14:52:04 +0000 (17:52 +0300)
commit18da9a0cb35c3849e47625272e477dbc5544e25b
treec4a2569660dc021719d55f3246ff4df9d683413d
parentdbc76ef7915f925970f7bae1c5b79f3dcf55d85e
[llvm-exegesis] Fix 'min' repetition mode in presence of missing measurements

This was a regression from 17e202424c021fd903950fec7a8b6cca2d83abce.
Previously we'd gracefully handle missing measurements,
but that handling got accidentally lost during the code move,
and we'd assert.

What we want to do, is to discard all measurements (from all repetitors
in a given config) if any of them failed, but do append the snippet,
and do emit the empty measurement.
llvm/test/tools/llvm-exegesis/X86/latency/latency-CMOV32rr.s
llvm/tools/llvm-exegesis/llvm-exegesis.cpp