diff options
| author | James Molloy <james.molloy@arm.com> | 2016-08-31 11:01:41 +0000 |
|---|---|---|
| committer | James Molloy <james.molloy@arm.com> | 2016-08-31 11:01:41 +0000 |
| commit | 75b1fb9b9e22f7f8f76c89982674761c734c390b (patch) | |
| tree | c24f7a2f29d71d95b358677c09d58421d97f45a8 /clang/test/Misc/backend-optimization-failure.cpp | |
| parent | 171fdac7ced51500b9cde465afe5b7f8ac832fe1 (diff) | |
| download | bcm5719-llvm-75b1fb9b9e22f7f8f76c89982674761c734c390b.tar.gz bcm5719-llvm-75b1fb9b9e22f7f8f76c89982674761c734c390b.zip | |
Attempt to pacify buildbots after r280217
These clang tests check diagnostics from the backend by giving it an unvectorizable loop. This loop is now vectorized :/
Make it really unvectorizable by making it unprofitable to ifconvert.
llvm-svn: 280220
Diffstat (limited to 'clang/test/Misc/backend-optimization-failure.cpp')
| -rw-r--r-- | clang/test/Misc/backend-optimization-failure.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Misc/backend-optimization-failure.cpp b/clang/test/Misc/backend-optimization-failure.cpp index bb50e96aaa5..1657c0cb91d 100644 --- a/clang/test/Misc/backend-optimization-failure.cpp +++ b/clang/test/Misc/backend-optimization-failure.cpp @@ -4,7 +4,7 @@ // Test verifies optimization failures generated by the backend are handled // correctly by clang. LLVM tests verify all of the failure conditions. -void test_switch(int *A, int *B, int Length) { +void test_switch(int *A, int *B, int Length,int J) { #pragma clang loop vectorize(enable) unroll(disable) for (int i = 0; i < Length; i++) { /* expected-warning@-1 {{loop not vectorized: failed explicitly specified loop vectorization}} */ switch (A[i]) { @@ -12,7 +12,7 @@ void test_switch(int *A, int *B, int Length) { B[i] = 1; break; case 1: - B[i] = 2; + B[J] = 2; break; default: B[i] = 3; |

