[llvm] r301376 - [XRay][tools] Fixup definition for stat division.

Dean Michael Berris via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 18:35:24 PDT 2017


Author: dberris
Date: Tue Apr 25 20:35:23 2017
New Revision: 301376

URL: http://llvm.org/viewvc/llvm-project?rev=301376&view=rev
Log:
[XRay][tools] Fixup definition for stat division.

Copy-pasta error.

Follow-up to D29320.

Modified:
    llvm/trunk/tools/llvm-xray/xray-graph.h

Modified: llvm/trunk/tools/llvm-xray/xray-graph.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-xray/xray-graph.h?rev=301376&r1=301375&r2=301376&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-xray/xray-graph.h (original)
+++ llvm/trunk/tools/llvm-xray/xray-graph.h Tue Apr 25 20:35:23 2017
@@ -223,9 +223,9 @@ inline GraphRenderer::TimeStat operator*
 /// 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




More information about the llvm-commits mailing list