[PATCH] D21773: [clang] Update an optimization remark test for change D18777
Li Huang via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 27 16:12:43 PDT 2016
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];
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21773.62024.patch
Type: text/x-patch
Size: 500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160627/930ab1d8/attachment.bin>
More information about the cfe-commits
mailing list