[PATCH] D106269: [Polly][Isl] Stop using isl::set::lex_le_set. NFC
Riccardo Mori via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 19 08:24:18 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG84dfbf5a7797: [Polly][Isl] Stop using isl::set::lex_le_set. NFC (authored by patacca).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106269/new/
https://reviews.llvm.org/D106269
Files:
polly/lib/Analysis/DependenceInfo.cpp
polly/lib/External/isl/include/isl/isl-noexceptions.h
Index: polly/lib/External/isl/include/isl/isl-noexceptions.h
===================================================================
--- polly/lib/External/isl/include/isl/isl-noexceptions.h
+++ polly/lib/External/isl/include/isl/isl-noexceptions.h
@@ -2869,7 +2869,6 @@
inline boolean is_wrapping() const;
inline isl::map lex_ge_set(isl::set set2) const;
inline isl::map lex_gt_set(isl::set set2) const;
- inline isl::map lex_le_set(isl::set set2) const;
inline isl::map lex_lt_set(isl::set set2) const;
inline isl::set lexmax() const;
inline isl::pw_multi_aff lexmax_pw_multi_aff() const;
@@ -16007,12 +16006,6 @@
return manage(res);
}
-isl::map set::lex_le_set(isl::set set2) const
-{
- auto res = isl_set_lex_le_set(copy(), set2.release());
- return manage(res);
-}
-
isl::map set::lex_lt_set(isl::set set2) const
{
auto res = isl_set_lex_lt_set(copy(), set2.release());
Index: polly/lib/Analysis/DependenceInfo.cpp
===================================================================
--- polly/lib/Analysis/DependenceInfo.cpp
+++ polly/lib/Analysis/DependenceInfo.cpp
@@ -673,7 +673,13 @@
isl::union_set UDeltas = Dependences.deltas();
isl::set Deltas = singleton(UDeltas, ScheduleSpace);
- isl::map NonPositive = Deltas.lex_le_set(Zero);
+ isl::space Space = Deltas.get_space();
+ isl::map NonPositive = isl::map::universe(Space.map_from_set());
+ NonPositive =
+ NonPositive.lex_le_at(isl::multi_pw_aff::identity_on_domain(Space));
+ NonPositive = NonPositive.intersect_domain(Deltas);
+ NonPositive = NonPositive.intersect_range(Zero);
+
return NonPositive.is_empty();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106269.359801.patch
Type: text/x-patch
Size: 1631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210719/60ebfeac/attachment.bin>
More information about the llvm-commits
mailing list