diff options
author | Tobias Grosser <tobias@grosser.es> | 2017-08-06 20:11:59 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2017-08-06 20:11:59 +0000 |
commit | b65ccc4302ef0a6e3ce793c80866e4e92c0eb422 (patch) | |
tree | 2ec765fd71d10a9d6e40a5fb5494e5283500aee7 /polly/lib/Transform/Simplify.cpp | |
parent | c9263f4e4968b3e361c610f65fcf729304fbb6f5 (diff) | |
download | bcm5719-llvm-b65ccc4302ef0a6e3ce793c80866e4e92c0eb422.tar.gz bcm5719-llvm-b65ccc4302ef0a6e3ce793c80866e4e92c0eb422.zip |
[ScopInfo] Translate Scop::getParamSpace to isl++ [NFC]
llvm-svn: 310224
Diffstat (limited to 'polly/lib/Transform/Simplify.cpp')
-rw-r--r-- | polly/lib/Transform/Simplify.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/polly/lib/Transform/Simplify.cpp b/polly/lib/Transform/Simplify.cpp index 385c2b5ba72..6f8a27f46e6 100644 --- a/polly/lib/Transform/Simplify.cpp +++ b/polly/lib/Transform/Simplify.cpp @@ -174,7 +174,7 @@ private: for (auto &Stmt : *S) { isl::set Domain = Stmt.getDomain(); isl::union_map WillBeOverwritten = - isl::union_map::empty(give(S->getParamSpace())); + isl::union_map::empty(S->getParamSpace()); SmallVector<MemoryAccess *, 32> Accesses(getAccessesInOrder(Stmt)); @@ -190,7 +190,7 @@ private: auto AccRel = MA->getAccessRelation(); AccRel = AccRel.intersect_domain(Domain); - AccRel = AccRel.intersect_params(give(S->getContext())); + AccRel = AccRel.intersect_params(S->getContext()); // If a value is read in-between, do not consider it as overwritten. if (MA->isRead()) { @@ -232,8 +232,7 @@ private: /// In all cases, both writes must write the same values. void coalesceWrites() { for (auto &Stmt : *S) { - isl::set Domain = - Stmt.getDomain().intersect_params(give(S->getContext())); + isl::set Domain = Stmt.getDomain().intersect_params(S->getContext()); // We let isl do the lookup for the same-value condition. For this, we // wrap llvm::Value into an isl::set such that isl can do the lookup in @@ -258,8 +257,7 @@ private: // List of all eligible (for coalescing) writes of the future. // { [Domain[] -> Element[]] -> [Value[] -> MemoryAccess[]] } - isl::union_map FutureWrites = - isl::union_map::empty(give(S->getParamSpace())); + isl::union_map FutureWrites = isl::union_map::empty(S->getParamSpace()); // Iterate over accesses from the last to the first. SmallVector<MemoryAccess *, 32> Accesses(getAccessesInOrder(Stmt)); @@ -428,12 +426,12 @@ private: }; isl::set Domain = Stmt.getDomain(); - Domain = Domain.intersect_params(give(S->getContext())); + Domain = Domain.intersect_params(S->getContext()); // List of element reads that still have the same value while iterating // through the MemoryAccesses. // { [Domain[] -> Element[]] -> Val[] } - isl::union_map Known = isl::union_map::empty(give(S->getParamSpace())); + isl::union_map Known = isl::union_map::empty(S->getParamSpace()); SmallVector<MemoryAccess *, 32> Accesses(getAccessesInOrder(Stmt)); for (MemoryAccess *MA : Accesses) { |