Summary: Change B type from double to pointer to double.
Reviewers: delena, sanjoy
Reviewed By: sanjoy
Subscribers: sanjoy, llvm-commits
Differential Revision: https://reviews.llvm.org/D29009
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293467
91177308-0d34-0410-b5e6-
96231b3b80d8
.. code-block:: c
// Let's assume that we vectorize the following loop:
- double *A, B; int *C;
+ double *A, *B; int *C;
for (int i = 0; i < size; ++i) {
A[i] = B[C[i]];
}