diff options
| author | Michael Kruse <llvm@meinersbur.de> | 2019-05-31 19:26:57 +0000 |
|---|---|---|
| committer | Michael Kruse <llvm@meinersbur.de> | 2019-05-31 19:26:57 +0000 |
| commit | aa8a976174c7ac08676bbc7bb647f6bc0efd2e72 (patch) | |
| tree | 98db57ad7af48fb03e7aab609970810859158a42 /polly/lib/CodeGen | |
| parent | c669629e6c01aa55f17f91e64905aac397f1f540 (diff) | |
| download | bcm5719-llvm-aa8a976174c7ac08676bbc7bb647f6bc0efd2e72.tar.gz bcm5719-llvm-aa8a976174c7ac08676bbc7bb647f6bc0efd2e72.zip | |
[ScheduleOptimizer] Hoist extension nodes after schedule optimization.
Extension nodes make schedule trees are less flexible: Many operations,
such as rescheduling, do not work on such schedule trees with extension.
As such, some functionality such as determining parallel loops in isl's
AST are disabled.
Currently, only the pattern-matching generalized matrix-matrix
multiplication optimization adds extension nodes (to add copy-in
statements).
This patch removes all extension nodes as the last step of the schedule
optimization by hoisting the extension node's added domain up to the
root domain node. All following passes can assume that schedule trees
work without restrictions, including the parallelism test. Mark the
outermost loop of the optimized matrix-matrix multiplication as parallel
such that -polly-parallel is able to parallelize that loop.
Differential Revision: https://reviews.llvm.org/D58202
llvm-svn: 362257
Diffstat (limited to 'polly/lib/CodeGen')
| -rw-r--r-- | polly/lib/CodeGen/IslAst.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/polly/lib/CodeGen/IslAst.cpp b/polly/lib/CodeGen/IslAst.cpp index 8ccbeda6a73..94367bd331b 100644 --- a/polly/lib/CodeGen/IslAst.cpp +++ b/polly/lib/CodeGen/IslAst.cpp @@ -521,13 +521,7 @@ IslAst::~IslAst() { void IslAst::init(const Dependences &D) { bool PerformParallelTest = PollyParallel || DetectParallel || PollyVectorizerChoice != VECTORIZER_NONE; - - // We can not perform the dependence analysis and, consequently, - // the parallel code generation in case the schedule tree contains - // extension nodes. auto ScheduleTree = S.getScheduleTree(); - PerformParallelTest = - PerformParallelTest && !S.containsExtensionNode(ScheduleTree); // Skip AST and code generation if there was no benefit achieved. if (!benefitsFromPolly(S, PerformParallelTest)) |

