diff options
author | Diego Novillo <dnovillo@google.com> | 2014-10-22 13:36:35 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2014-10-22 13:36:35 +0000 |
commit | a67c0b43e151672a49814abf12350d1de03cefc4 (patch) | |
tree | c774a64609ba0f4ae429837e6dc3ff67b05e2bf5 /llvm/test/Transforms/SampleProfile/syntax.ll | |
parent | 61e652334fe94931138706472c4f052cc9b8207a (diff) | |
download | bcm5719-llvm-a67c0b43e151672a49814abf12350d1de03cefc4.tar.gz bcm5719-llvm-a67c0b43e151672a49814abf12350d1de03cefc4.zip |
Change error to warning when a profile cannot be found.
When the profile for a function cannot be applied, we use to emit an
error. This seems extreme. The compiler can continue, it's just that the
optimization opportunities won't include profile information.
llvm-svn: 220386
Diffstat (limited to 'llvm/test/Transforms/SampleProfile/syntax.ll')
-rw-r--r-- | llvm/test/Transforms/SampleProfile/syntax.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/SampleProfile/syntax.ll b/llvm/test/Transforms/SampleProfile/syntax.ll index 53c65f44239..f807db9d524 100644 --- a/llvm/test/Transforms/SampleProfile/syntax.ll +++ b/llvm/test/Transforms/SampleProfile/syntax.ll @@ -1,4 +1,4 @@ -; RUN: not opt < %s -sample-profile -sample-profile-file=%S/Inputs/syntax.prof 2>&1 | FileCheck -check-prefix=NO-DEBUG %s +; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/syntax.prof 2>&1 | FileCheck -check-prefix=NO-DEBUG %s ; RUN: not opt < %s -sample-profile -sample-profile-file=missing.prof 2>&1 | FileCheck -check-prefix=MISSING-FILE %s ; RUN: not opt < %s -sample-profile -sample-profile-file=%S/Inputs/bad_fn_header.prof 2>&1 | FileCheck -check-prefix=BAD-FN-HEADER %s ; RUN: not opt < %s -sample-profile -sample-profile-file=%S/Inputs/bad_sample_line.prof 2>&1 | FileCheck -check-prefix=BAD-SAMPLE-LINE %s @@ -11,7 +11,7 @@ define void @empty() { entry: ret void } -; NO-DEBUG: error: No debug information found in function empty +; NO-DEBUG: warning: No debug information found in function empty: Function profile not used ; MISSING-FILE: error: missing.prof: ; BAD-FN-HEADER: error: {{.*}}bad_fn_header.prof:1: Expected 'mangled_name:NUM:NUM', found 3empty:100:BAD ; BAD-SAMPLE-LINE: error: {{.*}}bad_sample_line.prof:3: Expected 'NUM[.NUM]: NUM[ mangled_name:NUM]*', found 1: BAD |