Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-remarkutil / annotation-count-with-dbg-loc.test
blob673a38001f760b43c7025df7a6246cf918f501a6
1 RUN: llvm-remarkutil annotation-count --use-debug-loc --parser=yaml --annotation-type=remark %p/Inputs/annotation-count-with-dbg-loc.yaml | FileCheck %s
2 RUN: llvm-remarkutil yaml2bitstream %p/Inputs/annotation-count-with-dbg-loc.yaml | llvm-remarkutil annotation-count --use-debug-loc --parser=bitstream --annotation-type=remark | FileCheck %s
3 RUN: llvm-remarkutil count --parser=yaml --count-by=arg --group-by=function-with-loc --remark-name="AnnotationSummary" %p/Inputs/annotation-count-with-dbg-loc.yaml | FileCheck %s --check-prefix=COUNT-CHECK
4 RUN: llvm-remarkutil yaml2bitstream %p/Inputs/annotation-count-with-dbg-loc.yaml | llvm-remarkutil count --parser=bitstream --count-by=arg --group-by=function-with-loc --remark-name="AnnotationSummary" | FileCheck %s --check-prefix=COUNT-CHECK
6 ; CHECK-LABEL: Source,Function,Count
7 ; CHECK: path/to/anno.c:1:2,func1,1
8 ; CHECK: path/to/anno2.c:1:2,func2,2
9 ; CHECK: path/to/anno3.c:1:2,func3,3
11 ; COUNT-CHECK-LABEL: FuctionWithDebugLoc,count
12 ; COUNT-CHECK: path/to/anno.c:func1,1
13 ; COUNT-CHECK: path/to/anno2.c:func2,2
14 ; COUNT-CHECK: path/to/anno3.c:func3,3