Displaying 1 result from an estimated 1 matches for "mat_o3".
2017 Jun 27
3
LLVM Matrix Multiplication Loop Vectorizer
...for (j = 0; j < N; j++)
{
C[i][j] = 0;
for (k = 0; k < N; k++)
C[i][j] += A[i][k]*B[k][j];
}
}
}
here are the commands;
clang -S -emit-llvm mat.c -march=knl -O3 -mllvm -disable-llvm-optzns -o
mat.ll
opt -S -O3 mat.ll -o mat_o3.ll
llc -x86-asm-syntax=intel mat_o3.ll -o mat_intel.s
with this command i got the below error
opt -S -O3 -force-vector-width=16 mat.ll -o mat_o3.ll
remark: <unknown>:0:0: loop not vectorized: value that could not be
identified as reduction is used outside the loop
it is unable to vect...