Revert "[llvm-exegesis] Add option to check the hardware support for a given feature...
authorMichael Liao <michael.hliao@gmail.com>
Thu, 1 Oct 2020 03:15:35 +0000 (23:15 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Thu, 1 Oct 2020 03:15:35 +0000 (23:15 -0400)
commit2c9dc7bbbf514b1ed7bdefacb3213beae5916b3d
treea9fe5c77010f657fb02b8394af9c5f99c639ee89
parent4e9277eda1874ead60f2c9d7cdb558fd19b32076
Revert "[llvm-exegesis] Add option to check the hardware support for a given feature before benchmarking."

This reverts commit 4fcd1a8e6528ca42fe656f2745e15d2b7f5de495 as
`llvm/test/tools/llvm-exegesis/X86/lbr/mov-add.s` failed on hosts
without LBR supported if the build has LIBPFM enabled. On that host,
`perf_event_open` fails with `EOPNOTSUPP` on LBR config. That change's
basic assumption

> If this is run on a non-supported hardware, it will produce all zeroes for latency.

could not stand as `perf_event_open` system call will fail if the
underlying hardware really don't have LBR supported.
llvm/test/tools/llvm-exegesis/X86/lbr/lit.local.cfg
llvm/tools/llvm-exegesis/lib/Target.h
llvm/tools/llvm-exegesis/lib/X86/Target.cpp
llvm/tools/llvm-exegesis/lib/X86/X86Counter.cpp
llvm/tools/llvm-exegesis/lib/X86/X86Counter.h
llvm/tools/llvm-exegesis/llvm-exegesis.cpp