summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
diff options
context:
space:
mode:
authorJohn Brawn <john.brawn@arm.com>2018-07-02 13:14:49 +0000
committerJohn Brawn <john.brawn@arm.com>2018-07-02 13:14:49 +0000
commit8fc5ec78d54df15de2908f16d55945da4b239613 (patch)
tree3207fb729f648cea62fe6f002682f4eced05f586 /llvm/tools/llvm-exegesis/llvm-exegesis.cpp
parent4ebba909a209b93c1f0cb626412aa2687c0fb36d (diff)
downloadbcm5719-llvm-8fc5ec78d54df15de2908f16d55945da4b239613.tar.gz
bcm5719-llvm-8fc5ec78d54df15de2908f16d55945da4b239613.zip
[llvm-exegesis] Delegate the decision of cycle counter name to the target
Currently the cycle counter is taken from the subtarget schedule model, which isn't any use if the subtarget doesn't have one. Delegate the decision to the target benchmark runner, as it may know better what to do in that case, with the default being the current behaviour. Differential Revision: https://reviews.llvm.org/D48779 llvm-svn: 336099
Diffstat (limited to 'llvm/tools/llvm-exegesis/llvm-exegesis.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/llvm-exegesis.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
index 92d19c07015..6b626b0eaa3 100644
--- a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
+++ b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
@@ -140,10 +140,6 @@ void benchmarkMain() {
return;
}
- // FIXME: Do not require SchedModel for latency.
- if (!State.getSubtargetInfo().getSchedModel().hasExtraProcessorInfo())
- llvm::report_fatal_error("sched model is missing extra processor info!");
-
const std::unique_ptr<BenchmarkRunner> Runner =
State.getExegesisTarget().createBenchmarkRunner(BenchmarkMode, State);
if (!Runner) {
OpenPOWER on IntegriCloud