summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-xray
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-04-26 01:35:23 +0000
committerDean Michael Berris <dberris@google.com>2017-04-26 01:35:23 +0000
commit0827b7ff3ecbe9d826ecc8fadb52717e373200e5 (patch)
tree11402e552955e2ce82781c95e26cf7d511803402 /llvm/tools/llvm-xray
parent0316f7ae7b2caac8b148a125177b40b7ac779514 (diff)
downloadbcm5719-llvm-0827b7ff3ecbe9d826ecc8fadb52717e373200e5.tar.gz
bcm5719-llvm-0827b7ff3ecbe9d826ecc8fadb52717e373200e5.zip
[XRay][tools] Fixup definition for stat division.
Copy-pasta error. Follow-up to D29320. llvm-svn: 301376
Diffstat (limited to 'llvm/tools/llvm-xray')
-rw-r--r--llvm/tools/llvm-xray/xray-graph.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-xray/xray-graph.h b/llvm/tools/llvm-xray/xray-graph.h
index 36362873178..a43df265d0e 100644
--- a/llvm/tools/llvm-xray/xray-graph.h
+++ b/llvm/tools/llvm-xray/xray-graph.h
@@ -223,9 +223,9 @@ inline GraphRenderer::TimeStat operator*(const GraphRenderer::TimeStat &A,
/// Hadamard Division of TimeStats
inline GraphRenderer::TimeStat operator/(const GraphRenderer::TimeStat &A,
const GraphRenderer::TimeStat &B) {
- return {A.Count * B.Count, A.Min * B.Min, A.Median * B.Median,
- A.Pct90 * B.Pct90, A.Pct99 * B.Pct99, A.Max * B.Max,
- A.Sum * B.Sum};
+ return {A.Count / B.Count, A.Min / B.Min, A.Median / B.Median,
+ A.Pct90 / B.Pct90, A.Pct99 / B.Pct99, A.Max / B.Max,
+ A.Sum / B.Sum};
}
} // namespace xray
} // namespace llvm
OpenPOWER on IntegriCloud