search for: isstridedptr

Displaying 1 result from an estimated 1 matches for "isstridedptr".

2015 Apr 22
4
[LLVMdev] Missed vectorization opportunities?
...o understand the limitations of the current vectorizer, and came upon these test cases that fail to get vectorized. 1. loop1 below (note the increment by 2) fails to get vectorized because the access a[j+1] is considered to wrap around (the corresponding SCEV doesn't have nsw/nuw set) and hence isStridedPtr() in LoopAccessAnalysis.cpp return false. #define SIZE 100000 void loop1 (float a[SIZE]) {   long t, j;   float cc = 23, dd = 34, ee = 233; #pragma clang loop vectorize(enable)   for (j = 1; j < SIZE-1; j += 2) {     float x;     x = a[j+1] + ee;     x = x / dd;     x = (cc + x) / dd;     a[j]...