diff options
| author | Clement Courbet <courbet@google.com> | 2018-09-26 08:37:21 +0000 |
|---|---|---|
| committer | Clement Courbet <courbet@google.com> | 2018-09-26 08:37:21 +0000 |
| commit | 684a5f675380ad3e97fbb9b6e6858ee2348f85b3 (patch) | |
| tree | ab9c1cecf65cca691bda95a5b312a2ed27179708 /llvm/tools/llvm-exegesis/lib/Uops.cpp | |
| parent | cc525e7b8d62231c3825630a4c1e384031d7b41d (diff) | |
| download | bcm5719-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.cpp | 6 |
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; |

