search for: code_2

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

Did you mean: code2
2018 Feb 12
1
Pattern not recognized as reduction
...d used for capturing the remarks from above code is clang -O3 -ffast-math -mavx2 -Rpass=loop-vectorize -Rpass-analysis=loop-vectorize file.c On the other hand , if we replace in the same code sum[0] by x and making very slight changes , it gets vectorized and prints the following remarks : CODE_2 ------------------------------------------------------------ --------------------------------------------------------- #include <stdio.h> int main() { int sum[1000]={1,2,3,4}; int x = 0; for (int i=1;i<1000;i++) { x +=sum[i-1]; }...