Mercurial > hg > CbC > CbC_llvm
comparison test/ThinLTO/X86/diagnostic-handler-remarks.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children | c2174574ed3a |
comparison
equal
deleted
inserted
replaced
120:1172e4bd9c6f | 121:803732b1fca8 |
---|---|
1 ; RUN: opt -module-summary %s -o %t1.bc | 1 ; RUN: opt -module-summary %s -o %t1.bc |
2 ; RUN: opt -module-summary %p/Inputs/diagnostic-handler-remarks.ll -o %t2.bc | 2 ; RUN: opt -module-summary %p/Inputs/diagnostic-handler-remarks.ll -o %t2.bc |
3 | 3 |
4 ; Optimization records are collected regardless of the diagnostic handler | 4 ; Optimization records are collected regardless of the diagnostic handler |
5 ; RUN: rm -f %t.yaml.thin.0.yaml %t.yaml.thin.1.yaml | |
5 ; RUN: llvm-lto -thinlto-action=run \ | 6 ; RUN: llvm-lto -thinlto-action=run \ |
6 ; RUN: -lto-pass-remarks-output=%t.yaml \ | 7 ; RUN: -lto-pass-remarks-output=%t.yaml \ |
7 ; RUN: -exported-symbol _func2 \ | 8 ; RUN: -exported-symbol _func2 \ |
8 ; RUN: -exported-symbol _main %t1.bc %t2.bc 2>&1 | \ | 9 ; RUN: -exported-symbol _main %t1.bc %t2.bc 2>&1 | \ |
9 ; RUN: FileCheck %s -allow-empty | 10 ; RUN: FileCheck %s -allow-empty |
11 ; CHECK-NOT: llvm-lto: | 12 ; CHECK-NOT: llvm-lto: |
12 | 13 |
13 | 14 |
14 ; Verify that bar is imported and inlined into foo | 15 ; Verify that bar is imported and inlined into foo |
15 ; RUN: cat %t.yaml.thin.0.yaml | FileCheck %s -check-prefix=YAML1 | 16 ; RUN: cat %t.yaml.thin.0.yaml | FileCheck %s -check-prefix=YAML1 |
16 ; YAML1: --- !Passed | 17 ; YAML1: --- !Passed |
17 ; YAML1: Pass: inline | 18 ; YAML1-NEXT: Pass: inline |
18 ; YAML1: Name: Inlined | 19 ; YAML1-NEXT: Name: Inlined |
19 ; YAML1: Function: main | 20 ; YAML1-NEXT: Function: main |
20 ; YAML1: Args: | 21 ; YAML1-NEXT: Args: |
21 ; YAML1: - Callee: foo | 22 ; YAML1-NEXT: - Callee: foo |
22 ; YAML1: - String: ' inlined into ' | 23 ; YAML1-NEXT: - String: ' inlined into ' |
23 ; YAML1: - Caller: main | 24 ; YAML1-NEXT: - Caller: main |
24 ; YAML1: ... | 25 ; YAML1-NEXT: - String: ' with cost=' |
26 ; YAML1-NEXT: - Cost: '-30' | |
27 ; YAML1-NEXT: - String: ' (threshold=' | |
28 ; YAML1-NEXT: - Threshold: '337' | |
29 ; YAML1-NEXT: - String: ')' | |
30 ; YAML1-NEXT: ... | |
25 | 31 |
26 | 32 |
27 ; Verify that bar is imported and inlined into foo | 33 ; Verify that bar is imported and inlined into foo |
28 ; RUN: cat %t.yaml.thin.1.yaml | FileCheck %s -check-prefix=YAML2 | 34 ; RUN: cat %t.yaml.thin.1.yaml | FileCheck %s -check-prefix=YAML2 |
29 ; YAML2: --- !Passed | 35 ; YAML2: --- !Passed |
30 ; YAML2: Pass: inline | 36 ; YAML2-NEXT: Pass: inline |
31 ; YAML2: Name: Inlined | 37 ; YAML2-NEXT: Name: Inlined |
32 ; YAML2: Function: foo | 38 ; YAML2-NEXT: Function: foo |
33 ; YAML2: Args: | 39 ; YAML2-NEXT: Args: |
34 ; YAML2: - Callee: bar | 40 ; YAML2-NEXT: - Callee: bar |
35 ; YAML2: - String: ' inlined into ' | 41 ; YAML2-NEXT: - String: ' inlined into ' |
36 ; YAML2: - Caller: foo | 42 ; YAML2-NEXT: - Caller: foo |
37 ; YAML2: ... | 43 ; YAML2-NEXT: - String: ' with cost=' |
44 ; YAML2-NEXT: - Cost: '-30' | |
45 ; YAML2-NEXT: - String: ' (threshold=' | |
46 ; YAML2-NEXT: - Threshold: '337' | |
47 ; YAML2-NEXT: - String: ')' | |
48 ; YAML2-NEXT: ... | |
38 | 49 |
39 | 50 |
40 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" | 51 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" |
41 target triple = "x86_64-apple-macosx10.11.0" | 52 target triple = "x86_64-apple-macosx10.11.0" |
42 | 53 |