[polly] r298522 - [DeLICM] Remove AllElements. NFC.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 22 10:18:39 PDT 2017
Author: meinersbur
Date: Wed Mar 22 12:18:39 2017
New Revision: 298522
URL: http://llvm.org/viewvc/llvm-project?rev=298522&view=rev
Log:
[DeLICM] Remove AllElements. NFC.
It is not used and will not be used (anymore) in future commits.
Modified:
polly/trunk/lib/Transform/DeLICM.cpp
Modified: polly/trunk/lib/Transform/DeLICM.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/DeLICM.cpp?rev=298522&r1=298521&r2=298522&view=diff
==============================================================================
--- polly/trunk/lib/Transform/DeLICM.cpp (original)
+++ polly/trunk/lib/Transform/DeLICM.cpp Wed Mar 22 12:18:39 2017
@@ -701,10 +701,6 @@ protected:
/// Cached version of the schedule and domains.
isl::union_map Schedule;
- /// Set of all referenced elements.
- /// { Element[] -> Element[] }
- isl::union_set AllElements;
-
/// Combined access relations of all MemoryKind::Array READ accesses.
/// { DomainRead[] -> Element[] }
isl::union_map AllReads;
@@ -945,16 +941,6 @@ protected:
// { DomainWrite[] -> Element[] }
auto AllWrites =
give(isl_union_map_union(AllMustWrites.copy(), AllMayWrites.copy()));
-
- // { Element[] }
- AllElements = makeEmptyUnionSet();
- foreachElt(AllWrites, [this](isl::map Write) {
- auto Space = give(isl_map_get_space(Write.keep()));
- auto EltSpace = give(isl_space_range(Space.take()));
- auto EltUniv = give(isl_set_universe(EltSpace.take()));
- AllElements =
- give(isl_union_set_add_set(AllElements.take(), EltUniv.take()));
- });
}
/// Print the current state of all MemoryAccesses to @p.
More information about the llvm-commits
mailing list