diff options
author | Oliver Stannard <oliver.stannard@arm.com> | 2016-02-02 13:52:52 +0000 |
---|---|---|
committer | Oliver Stannard <oliver.stannard@arm.com> | 2016-02-02 13:52:52 +0000 |
commit | 9181785a0c68d0021fba6d407baaf1d8ac707538 (patch) | |
tree | dbc66d79464fc8177f295e2e157410b868529a37 /clang/test/Frontend/optimization-remark-analysis.c | |
parent | 7e7d983a878acc83e0aa424907286e8cd4e22960 (diff) | |
download | bcm5719-llvm-9181785a0c68d0021fba6d407baaf1d8ac707538.tar.gz bcm5719-llvm-9181785a0c68d0021fba6d407baaf1d8ac707538.zip |
Add backend dignostic printer for unsupported features
Re-commit of r258950 after fixing layering violation.
The related LLVM patch adds a backend diagnostic type for reporting
unsupported features, this adds a printer for them to clang.
In the case where debug location information is not available, I've
changed the printer to report the location as the first line of the
function, rather than the closing brace, as the latter does not give the
user any information. This also affects optimisation remarks.
llvm-svn: 259499
Diffstat (limited to 'clang/test/Frontend/optimization-remark-analysis.c')
-rw-r--r-- | clang/test/Frontend/optimization-remark-analysis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Frontend/optimization-remark-analysis.c b/clang/test/Frontend/optimization-remark-analysis.c index 5b4d9aec41a..b3963279761 100644 --- a/clang/test/Frontend/optimization-remark-analysis.c +++ b/clang/test/Frontend/optimization-remark-analysis.c @@ -1,8 +1,8 @@ // RUN: %clang -O1 -fvectorize -target x86_64-unknown-unknown -emit-llvm -Rpass-analysis -S %s -o - 2>&1 | FileCheck %s --check-prefix=RPASS // RUN: %clang -O1 -fvectorize -target x86_64-unknown-unknown -emit-llvm -S %s -o - 2>&1 | FileCheck %s -// RPASS: {{.*}}:21:1: remark: loop not vectorized: loop contains a switch statement -// CHECK-NOT: {{.*}}:21:1: remark: loop not vectorized: loop contains a switch statement +// RPASS: {{.*}}:7:8: remark: loop not vectorized: loop contains a switch statement +// CHECK-NOT: {{.*}}:7:8: remark: loop not vectorized: loop contains a switch statement double foo(int N, int *Array) { double v = 0.0; |