summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Uops.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-09-26 08:37:21 +0000
committerClement Courbet <courbet@google.com>2018-09-26 08:37:21 +0000
commit684a5f675380ad3e97fbb9b6e6858ee2348f85b3 (patch)
treeab9c1cecf65cca691bda95a5b312a2ed27179708 /llvm/tools/llvm-exegesis/lib/Uops.cpp
parentcc525e7b8d62231c3825630a4c1e384031d7b41d (diff)
downloadbcm5719-llvm-684a5f675380ad3e97fbb9b6e6858ee2348f85b3.tar.gz
bcm5719-llvm-684a5f675380ad3e97fbb9b6e6858ee2348f85b3.zip
[llvm-exegesis] Output the unscaled value as well as the scaled one.
Summary: See PR38936 for context. Reviewers: gchatelet Subscribers: tschuett, llvm-commits Differential Revision: https://reviews.llvm.org/D52500 llvm-svn: 343081
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Uops.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Uops.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Uops.cpp b/llvm/tools/llvm-exegesis/lib/Uops.cpp
index beb9fa8acf5..dbecbfe5441 100644
--- a/llvm/tools/llvm-exegesis/lib/Uops.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Uops.cpp
@@ -252,8 +252,7 @@ UopsSnippetGenerator::generateCodeTemplate(unsigned Opcode) const {
std::vector<BenchmarkMeasure>
UopsBenchmarkRunner::runMeasurements(const ExecutableFunction &Function,
- ScratchSpace &Scratch,
- const unsigned NumRepetitions) const {
+ ScratchSpace &Scratch) const {
const auto &SchedModel = State.getSubtargetInfo().getSchedModel();
std::vector<BenchmarkMeasure> Result;
@@ -281,7 +280,8 @@ UopsBenchmarkRunner::runMeasurements(const ExecutableFunction &Function,
CounterValue += Counter.read();
}
Result.push_back({llvm::itostr(ProcResIdx),
- static_cast<double>(CounterValue) / NumRepetitions,
+ static_cast<double>(CounterValue),
+ static_cast<double>(CounterValue),
SchedModel.getProcResource(ProcResIdx)->Name});
}
return Result;
OpenPOWER on IntegriCloud