Author: jamesm Date: Wed Aug 31 06:01:41 2016 New Revision: 280220 URL: http://llvm.org/viewvc/llvm-project?rev=280220&view=rev Log: 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. Modified: cfe/trunk/test/Misc/backend-optimization-failure-nodbg.cpp cfe/trunk/test/Misc/backend-optimization-failure.cpp Modified: cfe/trunk/test/Misc/backend-optimization-failure-nodbg.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/backend-optimization-failure-nodbg.cpp?rev=280220&r1=280219&r2=280220&view=diff ============================================================================== --- cfe/trunk/test/Misc/backend-optimization-failure-nodbg.cpp (original) +++ cfe/trunk/test/Misc/backend-optimization-failure-nodbg.cpp Wed Aug 31 06:01:41 2016 @@ -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) { /* expected-warning {{loop not vectorized: failed explicitly specified loop vectorization}} */ +void test_switch(int *A, int *B, int Length, int J) { /* expected-warning {{loop not vectorized: failed explicitly specified loop vectorization}} */ #pragma clang loop vectorize(enable) unroll(disable) for (int i = 0; i < Length; i++) { switch (A[i]) { @@ -12,7 +12,7 @@ void test_switch(int *A, int *B, int Len B[i] = 1; break; case 1: - B[i] = 2; + B[J] = 2; break; default: B[i] = 3; Modified: cfe/trunk/test/Misc/backend-optimization-failure.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/backend-optimization-failure.cpp?rev=280220&r1=280219&r2=280220&view=diff ============================================================================== --- cfe/trunk/test/Misc/backend-optimization-failure.cpp (original) +++ cfe/trunk/test/Misc/backend-optimization-failure.cpp Wed Aug 31 06:01:41 2016 @@ -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 Len B[i] = 1; break; case 1: - B[i] = 2; + B[J] = 2; break; default: B[i] = 3; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits