]> granicus.if.org Git - llvm/commit
[XRay][tools] Remove some assertions in llvm-xray graph
authorDean Michael Berris <dberris@google.com>
Fri, 31 Mar 2017 01:56:45 +0000 (01:56 +0000)
committerDean Michael Berris <dberris@google.com>
Fri, 31 Mar 2017 01:56:45 +0000 (01:56 +0000)
commit365612c08f3e1380ddfbb0748353d4585894d542
tree0759e162a2d2c9c9528abf899fab380f045f00fd
parent49223227ce825cfc189bc4448952c1578702b73c
[XRay][tools] Remove some assertions in llvm-xray graph

Summary:
Assertions assuming that function calls may not have zero durations do
not seem to hold in the wild. There are valid cases where the conversion
of the tsc counters end up becoming zero-length durations. These
assertions don't really hold and the algorithms don't need those to be
true for them to work.

Reviewers: dblaikie, echristo

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D31519

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299150 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-xray/X86/graph-zero-latency-calls.yaml [new file with mode: 0644]
tools/llvm-xray/xray-graph.cc