aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorRoman Gareev <gareevroman@gmail.com>2021-09-25 19:19:33 +0500
committerRoman Gareev <gareevroman@gmail.com>2021-09-28 22:58:57 +0500
commit113fa82c3ca4d4fc8310a1de3c4ec31343f81542 (patch)
tree37b5423b6904ed907f6533f714918f7e218e84e0 /clang/lib/CodeGen/CodeGenFunction.cpp
parentbe610932fa068ed2228b0f694ae80c9294f0293f (diff)
downloadllvm-113fa82c3ca4d4fc8310a1de3c4ec31343f81542.zip
llvm-113fa82c3ca4d4fc8310a1de3c4ec31343f81542.tar.gz
llvm-113fa82c3ca4d4fc8310a1de3c4ec31343f81542.tar.bz2
[Polly] Check the properties of accesses to operands of a matrix-matrix
multiplication The following code modifies elements of the array D. for (i = 0; i < _PB_NI; i++) for (j = 0; j < _PB_NJ; j++) { for (k = 0; k < _PB_NK; k++) { double Mul = A[i][k] * B[k][j]; D[i][j][k] += Mul; C[i][j] += Mul; } } Nevertheless, the code is recognised as a matrix-matrix multiplication, since the second and third dimensions of D are accessed with non-zero strides. This fixes the typo, which was made during the translation to C++ bindings (https://reviews.llvm.org/D35845). Reviewed By: Michael Kruse <llvm@meinersbur.de> Differential Revision: https://reviews.llvm.org/D110491
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions