[CodeGen] Handle outlining of CopyStmts.
commit96168ae6fb436e95cd756950855a57b895070047
authorMichael Kruse <llvm@meinersbur.de>
Tue, 17 Sep 2019 22:59:43 +0000 (17 22:59 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Tue, 17 Sep 2019 22:59:43 +0000 (17 22:59 +0000)
treeefef524cf7fb436888d4203472c533e18f143160
parent580061adee997cd8053e77fba07730cb73523688
[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

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@372188 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/IslNodeBuilder.cpp
test/Isl/CodeGen/OpenMP/matmul-parallel.ll [new file with mode: 0644]