diff options
| author | Adam Nemet <anemet@apple.com> | 2017-01-26 00:39:51 +0000 |
|---|---|---|
| committer | Adam Nemet <anemet@apple.com> | 2017-01-26 00:39:51 +0000 |
| commit | 916923e689527e99bb6c1675c95a7ce9c0d53713 (patch) | |
| tree | 1519e7ded320e2a820e26a0932094b6e345fc27a /llvm/test/CodeGen | |
| parent | 309b3bfa6ad048378b38762b7cdd69e9cb92fad3 (diff) | |
| download | bcm5719-llvm-916923e689527e99bb6c1675c95a7ce9c0d53713.tar.gz bcm5719-llvm-916923e689527e99bb6c1675c95a7ce9c0d53713.zip | |
[llc] Add -pass-remarks-output
This is the opt/llc counterpart of -fsave-optimization-record to output
optimization remarks in a YAML file.
llvm-svn: 293121
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/AArch64/arm64-spill-remarks.ll | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/arm64-spill-remarks.ll b/llvm/test/CodeGen/AArch64/arm64-spill-remarks.ll index f15192e910b..bc9340352d7 100644 --- a/llvm/test/CodeGen/AArch64/arm64-spill-remarks.ll +++ b/llvm/test/CodeGen/AArch64/arm64-spill-remarks.ll @@ -1,6 +1,8 @@ ; RUN: llc < %s -mtriple=arm64-apple-ios7.0 -aarch64-neon-syntax=apple -pass-remarks-missed=regalloc 2>&1 | FileCheck -check-prefix=REMARK %s ; RUN: llc < %s -mtriple=arm64-apple-ios7.0 -aarch64-neon-syntax=apple -pass-remarks-missed=regalloc -pass-remarks-with-hotness 2>&1 | FileCheck -check-prefix=HOTNESS %s ; RUN: llc < %s -mtriple=arm64-apple-ios7.0 -aarch64-neon-syntax=apple 2>&1 | FileCheck -check-prefix=NO_REMARK %s +; RUN: llc < %s -mtriple=arm64-apple-ios7.0 -aarch64-neon-syntax=apple -pass-remarks-output=%t.yaml -pass-remarks-with-hotness 2>&1 | FileCheck -check-prefix=NO_REMARK %s +; RUN: cat %t.yaml | FileCheck -check-prefix=YAML %s ; This has two nested loops, each with one value that has to be spilled and ; then reloaded. @@ -21,6 +23,46 @@ ; NO_REMARK-NOT: remark +; YAML: --- !Missed +; YAML: Pass: regalloc +; YAML: Name: LoopSpillReload +; YAML: DebugLoc: { File: /tmp/kk.c, Line: 3, Column: 20 } +; YAML: Function: fpr128 +; YAML: Hotness: 300 +; YAML: Args: +; YAML: - NumSpills: '1' +; YAML: - String: ' spills ' +; YAML: - NumReloads: '1' +; YAML: - String: ' reloads ' +; YAML: - String: generated in loop +; YAML: ... +; YAML: --- !Missed +; YAML: Pass: regalloc +; YAML: Name: LoopSpillReload +; YAML: DebugLoc: { File: /tmp/kk.c, Line: 2, Column: 20 } +; YAML: Function: fpr128 +; YAML: Hotness: 30000 +; YAML: Args: +; YAML: - NumSpills: '1' +; YAML: - String: ' spills ' +; YAML: - NumReloads: '1' +; YAML: - String: ' reloads ' +; YAML: - String: generated in loop +; YAML: ... +; YAML: --- !Missed +; YAML: Pass: regalloc +; YAML: Name: LoopSpillReload +; YAML: DebugLoc: { File: /tmp/kk.c, Line: 1, Column: 20 } +; YAML: Function: fpr128 +; YAML: Hotness: 300 +; YAML: Args: +; YAML: - NumSpills: '2' +; YAML: - String: ' spills ' +; YAML: - NumReloads: '2' +; YAML: - String: ' reloads ' +; YAML: - String: generated in loop +; YAML: ... + define void @fpr128(<4 x float>* %p) nounwind ssp !prof !11 { entry: br label %loop, !dbg !8 |

