lihuang created this revision. lihuang added reviewers: sanjoy, reames. lihuang added a subscriber: cfe-commits.
Update an optimization remark test for change D18777. This test checks the loop-vectorization remarks when pointer checking threshold is exceeded. The change in D18777 would introduce zexts that cannot be removed so that the "loop not vectorized" reason is changed, hence breaking this test. Modified the offsets to be 1 and the zexts could be finally removed by indvars (this magic fact is attributed to some scev mechanisms). Since the purpose of this test is checking the vectorization options, the offset numbers don't matter. http://reviews.llvm.org/D21773 Files: test/Frontend/optimization-remark-options.c Index: test/Frontend/optimization-remark-options.c =================================================================== --- test/Frontend/optimization-remark-options.c +++ test/Frontend/optimization-remark-options.c @@ -16,6 +16,6 @@ void foo2(int *dw, int *uw, int *A, int *B, int *C, int *D, int N) { for (int i = 0; i < N; i++) { dw[i] = A[i] + B[i - 1] + C[i - 2] + D[i - 3]; - uw[i] = A[i] + B[i + 1] + C[i + 2] + D[i + 3]; + uw[i] = A[i] + B[i + 1] + C[i + 1] + D[i + 1]; } }
Index: test/Frontend/optimization-remark-options.c =================================================================== --- test/Frontend/optimization-remark-options.c +++ test/Frontend/optimization-remark-options.c @@ -16,6 +16,6 @@ void foo2(int *dw, int *uw, int *A, int *B, int *C, int *D, int N) { for (int i = 0; i < N; i++) { dw[i] = A[i] + B[i - 1] + C[i - 2] + D[i - 3]; - uw[i] = A[i] + B[i + 1] + C[i + 2] + D[i + 3]; + uw[i] = A[i] + B[i + 1] + C[i + 1] + D[i + 1]; } }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits