[CodeGen] Handle outlining of CopyStmts.
authorMichael Kruse <llvm@meinersbur.de>
Tue, 17 Sep 2019 22:59:43 +0000 (22:59 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Tue, 17 Sep 2019 22:59:43 +0000 (22:59 +0000)
commit241b02e762872173dcb5bd27ff9fe3eb7dce1db2
tree99d60419c07f854e1c511a2d98883d677e32a83c
parent33054a02f762671d85253fc49fa819ccbc8b0474
[CodeGen] Handle outlining of CopyStmts.

Since the removal of extensions nodes from schedule trees in r362257 it
is possible to emit parallel code for SCoPs containing
matrix-multiplications. However, the code looking for references used in
outlined statement was not prepared to handle CopyStmts introduced by
the matrix-matrix multiplication detection.

In this case, CopyStmts do not introduce references in addition to the
ones captured by MemoryAccesses, i.e. we change the assertion to accept
CopyStmts and add a regression test for this case.

This fixes llvm.org/PR43164

llvm-svn: 372188
polly/lib/CodeGen/IslNodeBuilder.cpp
polly/test/Isl/CodeGen/OpenMP/matmul-parallel.ll [new file with mode: 0644]