[PATCH] D21773: [clang] Update an optimization remark test for change D18777

Li Huang via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 29 17:59:16 PDT 2016


lihuang added a comment.

You are right. A regression test could be:

  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];
      uw[i] = A[i] + B[i + 2];
    }
  }

need to fix the fundamental problem.


http://reviews.llvm.org/D21773





More information about the cfe-commits mailing list