r231020 - Fix test case.
Sanjoy Das
sanjoy at playingwithpointers.com
Mon Mar 2 13:47:47 PST 2015
Author: sanjoy
Date: Mon Mar 2 15:47:47 2015
New Revision: 231020
URL: http://llvm.org/viewvc/llvm-project?rev=231020&view=rev
Log:
Fix test case.
r230921 broke backend-optimization-failure.cpp: after
r230921, LLVM no longer emits an expression to compute 'Length - 1'
and this perturbs LoopSimplify enough to emit the warning on line 10
instead of line 9. This is a review request to fix the test case once
I re-land r230921.
Modified:
cfe/trunk/test/Misc/backend-optimization-failure.cpp
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=231020&r1=231019&r2=231020&view=diff
==============================================================================
--- cfe/trunk/test/Misc/backend-optimization-failure.cpp (original)
+++ cfe/trunk/test/Misc/backend-optimization-failure.cpp Mon Mar 2 15:47:47 2015
@@ -6,8 +6,8 @@
void test_switch(int *A, int *B, int Length) {
#pragma clang loop vectorize(enable) unroll(disable)
- /* expected-warning {{loop not vectorized: failed explicitly specified loop vectorization}} */ for (int i = 0; i < Length; i++) {
- switch (A[i]) {
+ for (int i = 0; i < Length; i++) {
+/* expected-warning {{loop not vectorized: failed explicitly specified loop vectorization}} */ switch (A[i]) {
case 0:
B[i] = 1;
break;
More information about the cfe-commits
mailing list