mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 16:36:40 +00:00
Revert r329403 "[llvm-mca] Do not separate iterations with a newline in the timeline view."
This made AArch64/CortexA57/direct-branch.s fail on Windows, e.g. http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/11251 > Also, update a few tests to minimize the diff in D45369. > No functional change intended. llvm-svn: 329569
This commit is contained in:
parent
86843e058f
commit
5413d62d98
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-mca -march=aarch64 -mcpu=cortex-a57 -iterations=600 -timeline -timeline-max-iterations=4 < %s | FileCheck %s
|
||||
# RUN: llvm-mca -march=aarch64 -mcpu=cortex-a57 -iterations=600 -timeline < %s | FileCheck %s
|
||||
|
||||
b t
|
||||
|
||||
@ -42,12 +42,13 @@
|
||||
|
||||
|
||||
# CHECK: Timeline view:
|
||||
# CHECK: Index 0123456
|
||||
# CHECK-NEXT: 012
|
||||
# CHECK-NEXT: Index 0123456789
|
||||
|
||||
# CHECK: [0,0] DeER .. b t
|
||||
# CHECK-NEXT: [1,0] D=eER.. b t
|
||||
# CHECK-NEXT: [2,0] D==eER. b t
|
||||
# CHECK-NEXT: [3,0] .D==eER b t
|
||||
# CHECK: [0,0] DeER . . . b t
|
||||
# CHECK: [1,0] D=eER. . . b t
|
||||
# CHECK: [2,0] D==eER . . b t
|
||||
# CHECK: [3,0] .D==eER . . b t
|
||||
|
||||
|
||||
# CHECK: Average Wait times (based on the timeline view):
|
||||
@ -57,4 +58,4 @@
|
||||
# CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
|
||||
|
||||
# CHECK: [0] [1] [2] [3]
|
||||
# CHECK-NEXT: 0. 4 2.2 2.2 0.0 b t
|
||||
# CHECK-NEXT: 0. 10 4.3 4.3 0.0 b t
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m3 -iterations=300 -timeline -timeline-max-iterations=3 -resource-pressure=false < %s | FileCheck %s -check-prefix=ALL -check-prefix=M3
|
||||
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m1 -iterations=300 -timeline -timeline-max-iterations=3 -resource-pressure=false < %s | FileCheck %s -check-prefix=ALL -check-prefix=M1
|
||||
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m3 -iterations=300 -timeline < %s | FileCheck %s -check-prefix=ALL -check-prefix=M3
|
||||
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m1 -iterations=300 -timeline < %s | FileCheck %s -check-prefix=ALL -check-prefix=M1
|
||||
|
||||
b t
|
||||
|
||||
@ -34,4 +34,4 @@
|
||||
# ALL-NEXT: [3]: Average time elapsed from WB until retire stage
|
||||
|
||||
# ALL: [0] [1] [2] [3]
|
||||
# ALL-NEXT: 0. 3 0.0 0.0 0.0 b t
|
||||
# ALL-NEXT: 0. 10 0.0 0.0 0.0 b t
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m3 -iterations=1 -verbose -resource-pressure=false -instruction-info=false < %s | FileCheck %s -check-prefix=ALL
|
||||
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m1 -iterations=1 -verbose -resource-pressure=false -instruction-info=false < %s | FileCheck %s -check-prefix=ALL
|
||||
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m3 -iterations=1 -verbose < %s | FileCheck %s -check-prefix=ALL
|
||||
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m1 -iterations=1 -verbose < %s | FileCheck %s -check-prefix=ALL
|
||||
|
||||
b t
|
||||
|
||||
|
@ -59,10 +59,10 @@ vhaddps %xmm3, %xmm3, %xmm4
|
||||
# CHECK: [0,0] DeeER. . . vmulps %xmm0, %xmm1, %xmm2
|
||||
# CHECK-NEXT: [0,1] D==eeeER . . vhaddps %xmm2, %xmm2, %xmm3
|
||||
# CHECK-NEXT: [0,2] .D====eeeER . vhaddps %xmm3, %xmm3, %xmm4
|
||||
# CHECK-NEXT: [1,0] .DeeE-----R . vmulps %xmm0, %xmm1, %xmm2
|
||||
# CHECK: [1,0] .DeeE-----R . vmulps %xmm0, %xmm1, %xmm2
|
||||
# CHECK-NEXT: [1,1] . D=eeeE---R . vhaddps %xmm2, %xmm2, %xmm3
|
||||
# CHECK-NEXT: [1,2] . D====eeeER . vhaddps %xmm3, %xmm3, %xmm4
|
||||
# CHECK-NEXT: [2,0] . DeeE-----R . vmulps %xmm0, %xmm1, %xmm2
|
||||
# CHECK: [2,0] . DeeE-----R . vmulps %xmm0, %xmm1, %xmm2
|
||||
# CHECK-NEXT: [2,1] . D====eeeER . vhaddps %xmm2, %xmm2, %xmm3
|
||||
# CHECK-NEXT: [2,2] . D======eeeER vhaddps %xmm3, %xmm3, %xmm4
|
||||
|
||||
|
@ -87,7 +87,7 @@ vsqrtps %ymm0, %ymm2
|
||||
# CHECK-NEXT: [0,5] . DeeeeeeeeeeeeeeeeeeeeeER . . . . . . . . . vsqrtps %xmm0, %xmm2
|
||||
# CHECK-NEXT: [0,6] . DeeeE-----------------R . . . . . . . . . vaddps %ymm0, %ymm1, %ymm2
|
||||
# CHECK-NEXT: [0,7] . D===================eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeER . vsqrtps %ymm0, %ymm2
|
||||
# CHECK-NEXT: [1,0] . .DeeeeE--------------------------------------------------------R . vpmulld %xmm0, %xmm1, %xmm2
|
||||
# CHECK: [1,0] . .DeeeeE--------------------------------------------------------R . vpmulld %xmm0, %xmm1, %xmm2
|
||||
# CHECK-NEXT: [1,1] . . DeE-----------------------------------------------------------R. vpand %xmm0, %xmm1, %xmm2
|
||||
# CHECK-NEXT: [1,2] . . DeeeE--------------------------------------------------------R. vcvttps2dq %xmm0, %xmm2
|
||||
# CHECK-NEXT: [1,3] . . DeeE----------------------------------------------------------R vpclmulqdq $0, %xmm0, %xmm1, %xmm2
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=5 -verbose -instruction-info=false -register-file-stats -timeline < %s | FileCheck %s
|
||||
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=5 -verbose -register-file-stats -timeline < %s | FileCheck %s
|
||||
|
||||
vaddps %xmm0, %xmm0, %xmm0
|
||||
vmulps %xmm0, %xmm0, %xmm0
|
||||
@ -34,14 +34,13 @@ vmulps %xmm0, %xmm0, %xmm0
|
||||
# CHECK: Timeline view:
|
||||
# CHECK-NEXT: 0123456789
|
||||
# CHECK-NEXT: Index 0123456789 01234567
|
||||
|
||||
# CHECK: [0,0] DeeeER . . . . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [0,1] D===eeER . . . . . vmulps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [1,0] .D====eeeER . . . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK: [1,0] .D====eeeER . . . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [1,1] .D=======eeER . . . . vmulps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [2,0] . D========eeeER . . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK: [2,0] . D========eeeER . . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [2,1] . D===========eeER . . . vmulps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [3,0] . D============eeeER . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK: [3,0] . D============eeeER . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [3,1] . D===============eeER . . vmulps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [4,0] . D================eeeER . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK: [4,0] . D================eeeER . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [4,1] . D===================eeER vmulps %xmm0, %xmm0, %xmm0
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -register-file-size=5 -iterations=5 -verbose -instruction-info=false -register-file-stats -timeline < %s | FileCheck %s
|
||||
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -register-file-size=5 -iterations=5 -verbose -register-file-stats -timeline < %s | FileCheck %s
|
||||
|
||||
vaddps %xmm0, %xmm0, %xmm0
|
||||
vmulps %xmm0, %xmm0, %xmm0
|
||||
@ -36,11 +36,11 @@ vmulps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: Index 0123456789 01234567
|
||||
# CHECK: [0,0] DeeeER . . . . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [0,1] D===eeER . . . . . vmulps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [1,0] .D====eeeER . . . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK: [1,0] .D====eeeER . . . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [1,1] .D=======eeER . . . . vmulps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [2,0] . D========eeeER . . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK: [2,0] . D========eeeER . . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [2,1] . D========eeER . . . vmulps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [3,0] . . D========eeeER . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK: [3,0] . . D========eeeER . . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [3,1] . . D========eeER . . vmulps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [4,0] . . . D========eeeER . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK: [4,0] . . . D========eeeER . vaddps %xmm0, %xmm0, %xmm0
|
||||
# CHECK-NEXT: [4,1] . . . D========eeER vmulps %xmm0, %xmm0, %xmm0
|
||||
|
@ -46,4 +46,4 @@ idiv %eax
|
||||
# CHECK-NEXT: Index 0123456789 0123456789 0123456789
|
||||
|
||||
# CHECK: [0,0] DeeeeeeeeeeeeeeeeeeeeeeeeeER . . . . . . idivl %eax
|
||||
# CHECK-NEXT: [1,0] . . . . . . DeeeeeeeeeeeeeeeeeeeeeeeeeER idivl %eax
|
||||
# CHECK: [1,0] . . . . . . DeeeeeeeeeeeeeeeeeeeeeeeeeER idivl %eax
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=22 -verbose -register-file-stats -resource-pressure=false -timeline -timeline-max-iterations=3 < %s | FileCheck %s
|
||||
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=22 -verbose -register-file-stats -timeline -timeline-max-iterations=3 < %s | FileCheck %s
|
||||
|
||||
idiv %eax
|
||||
|
||||
@ -45,5 +45,5 @@ idiv %eax
|
||||
# CHECK-NEXT: 0123456789 0123456789 0123456789 01234567
|
||||
# CHECK-NEXT: Index 0123456789 0123456789 0123456789 0123456789
|
||||
# CHECK: [0,0] DeeeeeeeeeeeeeeeeeeeeeeeeeER . . . . . . . . . . . idivl %eax
|
||||
# CHECK-NEXT: [1,0] .D========================eeeeeeeeeeeeeeeeeeeeeeeeeER . . . . . . idivl %eax
|
||||
# CHECK-NEXT: [2,0] . D================================================eeeeeeeeeeeeeeeeeeeeeeeeeER idivl %eax
|
||||
# CHECK: [1,0] .D========================eeeeeeeeeeeeeeeeeeeeeeeeeER . . . . . . idivl %eax
|
||||
# CHECK: [2,0] . D================================================eeeeeeeeeeeeeeeeeeeeeeeeeER idivl %eax
|
||||
|
@ -155,7 +155,7 @@ void TimelineView::printTimelineViewEntry(raw_string_ostream &OS,
|
||||
const TimelineViewEntry &Entry,
|
||||
unsigned Iteration,
|
||||
unsigned SourceIndex) const {
|
||||
if (Iteration == 0 && SourceIndex == 0)
|
||||
if (SourceIndex == 0)
|
||||
OS << '\n';
|
||||
OS << '[' << Iteration << ',' << SourceIndex << "]\t";
|
||||
for (unsigned I = 0, E = Entry.CycleDispatched; I < E; ++I)
|
||||
|
Loading…
Reference in New Issue
Block a user