Displaying 1 result from an estimated 1 matches for "coloccupied".
2018 Jun 11
2
LoopVectorize fails to vectorize code with condition on reduction
Hello.
I'm not able to vectorize this simple C loop doing basically what could be called
predicated sum-reduction:
#define NMAX 1000
int colOccupied[NMAX];
void Func(int N) {
int numSol = 0;
for (int c = 0; c < N; c++) {
if (colOccupied[c] == 0)
numSol++;
}
return numSol;
}
The compiler command I used was:
clang -O3 -emit-llvm -S -mllvm -debug -ffa...