summaryrefslogtreecommitdiff
path: root/polly/unittests
diff options
context:
space:
mode:
authorpatacca <patacca@autistici.org>2021-07-07 16:26:44 +0200
committerpatacca <patacca@autistici.org>2021-07-07 16:26:55 +0200
commitb55aedd0b8cf6dbd6d3d08e1a9a40fd73eb6b2dc (patch)
treeb3f475d83d4f1d2892da710dde494ca08bf4424c /polly/unittests
parent2c03d92ee637537c0d6ea4ba05474d41b3131bd7 (diff)
downloadllvm-b55aedd0b8cf6dbd6d3d08e1a9a40fd73eb6b2dc.tar.gz
[Polly][Isl] Use isl::union_set::unite() instead of isl::union_set::add_set(). NFC
This is part of an effort to reduce the differences between the custom C++ bindings used right now by polly in `lib/External/isl/include/isl/isl-noxceptions.h` and the official isl C++ interface. Changes made: - Use `isl::union_set::unite()` instead of `isl::union_set::add_set()` - `isl-noexceptions.h` has been generated by this https://github.com/patacca/isl/commit/390c44982b5cee7eb43f8f7a80e185e6d21466b2 Depends on D104994 Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D105444
Diffstat (limited to 'polly/unittests')
-rw-r--r--polly/unittests/DeLICM/DeLICMTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/unittests/DeLICM/DeLICMTest.cpp b/polly/unittests/DeLICM/DeLICMTest.cpp
index 64318a4bc0d9..34a73064246a 100644
--- a/polly/unittests/DeLICM/DeLICMTest.cpp
+++ b/polly/unittests/DeLICM/DeLICMTest.cpp
@@ -27,7 +27,7 @@ isl::union_set unionSpace(const isl::union_set &USet) {
for (isl::set Set : USet.get_set_list()) {
isl::space Space = Set.get_space();
isl::set Universe = isl::set::universe(Space);
- Result = Result.add_set(Universe);
+ Result = Result.unite(Universe);
}
return Result;
}
@@ -120,7 +120,7 @@ bool checkIsConflictingNonsymmetricCommon(
auto NewSpace = isl::space(Ctx, 0, 1);
NewSpace = NewSpace.set_tuple_id(isl::dim::set, NewId);
auto NewSet = isl::set::universe(NewSpace);
- Universe = Universe.add_set(NewSet);
+ Universe = Universe.unite(NewSet);
// Using the universe, fill missing data.
isl::union_set ExistingOccupied;