summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools
diff options
context:
space:
mode:
authorMatt Davis <Matthew.Davis@sony.com>2019-03-07 19:34:44 +0000
committerMatt Davis <Matthew.Davis@sony.com>2019-03-07 19:34:44 +0000
commit6c5a49ccb9e42e163d1d9b70c71b55bcd98bfaae (patch)
tree998a6f63b0c59775303ab8fca855a04b50e01a80 /llvm/test/tools
parent2ead8e899327807e63b668e65de6cb09c31bb667 (diff)
downloadbcm5719-llvm-6c5a49ccb9e42e163d1d9b70c71b55bcd98bfaae.tar.gz
bcm5719-llvm-6c5a49ccb9e42e163d1d9b70c71b55bcd98bfaae.zip
[llvm-mca] Emit a message when no bottlenecks are identified.
Summary: Since bottleneck hints are enabled via user request, it can be confusing if no bottleneck information is presented. Such is the case when no bottlenecks are identified. This patch emits a message in that case. Reviewers: andreadb Reviewed By: andreadb Subscribers: tschuett, gbedwell, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D59098 llvm-svn: 355628
Diffstat (limited to 'llvm/test/tools')
-rw-r--r--llvm/test/tools/llvm-mca/X86/BtVer2/bottleneck-hints-none.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-mca/X86/BtVer2/bottleneck-hints-none.s b/llvm/test/tools/llvm-mca/X86/BtVer2/bottleneck-hints-none.s
new file mode 100644
index 00000000000..1eb888d66da
--- /dev/null
+++ b/llvm/test/tools/llvm-mca/X86/BtVer2/bottleneck-hints-none.s
@@ -0,0 +1,16 @@
+# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
+# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -bottleneck-analysis -all-views=false -summary-view -iterations 1 < %s | FileCheck %s -implicit-check-not 'Cycles with backend pressure increase'
+
+add %eax, %ebx
+
+# CHECK: Iterations: 1
+# CHECK-NEXT: Instructions: 1
+# CHECK-NEXT: Total Cycles: 4
+# CHECK-NEXT: Total uOps: 1
+
+# CHECK: Dispatch Width: 2
+# CHECK-NEXT: uOps Per Cycle: 0.25
+# CHECK-NEXT: IPC: 0.25
+# CHECK-NEXT: Block RThroughput: 0.5
+
+# CHECK: No resource or data dependency bottlenecks discovered.
OpenPOWER on IntegriCloud