forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
1 parent
4922322
commit 365612c
Showing
2 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#RUN: llvm-xray graph %s -o - -m %S/Inputs/simple-instrmap.yaml | FileCheck %s | ||
|
||
--- | ||
header: | ||
version: 1 | ||
type: 0 | ||
constant-tsc: true | ||
nonstop-tsc: true | ||
cycle-frequency: 2601000000 | ||
records: | ||
- { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10001 } | ||
- { type: 0, func-id: 2, cpu: 1, thread: 111, kind: function-enter, tsc: 10002 } | ||
- { type: 0, func-id: 2, cpu: 1, thread: 111, kind: function-exit, tsc: 10002 } | ||
- { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-exit, tsc: 10100 } | ||
... | ||
|
||
#CHECK: digraph xray { | ||
#CHECK-DAG: F0 -> F1 [{{.*}}]; | ||
#CHECK-DAG: F1 -> F2 [{{.*}}]; | ||
#CHECK-DAG: } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters