projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
321b9cd
)
[unittests] Add postcondition to completeLifetime.
author
Michael Kruse
<llvm@meinersbur.de>
Tue, 25 Apr 2017 00:30:32 +0000
(
00:30
+0000)
committer
Michael Kruse
<llvm@meinersbur.de>
Tue, 25 Apr 2017 00:30:32 +0000
(
00:30
+0000)
llvm-svn: 301283
polly/unittests/DeLICM/DeLICMTest.cpp
patch
|
blob
|
history
diff --git
a/polly/unittests/DeLICM/DeLICMTest.cpp
b/polly/unittests/DeLICM/DeLICMTest.cpp
index
41ab799
..
23d3ac0
100644
(file)
--- a/
polly/unittests/DeLICM/DeLICMTest.cpp
+++ b/
polly/unittests/DeLICM/DeLICMTest.cpp
@@
-65,6
+65,11
@@
void completeLifetime(isl::union_set Universe, isl::union_map OccupiedAndKnown,
if (!Known) { // By default, nothing is known.
Known = isl::union_map::empty(ParamSpace);
}
+
+ // Conditions that must hold when returning.
+ assert(Occupied);
+ assert(Undef);
+ assert(Known);
}
typedef struct {