diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-09-21 16:24:13 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-09-21 16:24:13 +0000 |
commit | 29ebecb11ab538cab4247a064fba51e61f0a2b9c (patch) | |
tree | eb5ca0f12162c4d50d5e7171a43505e22059f50b /polly | |
parent | e63adc5476cf57d878c9560a44db3df3c1fe5005 (diff) | |
download | llvm-29ebecb11ab538cab4247a064fba51e61f0a2b9c.zip llvm-29ebecb11ab538cab4247a064fba51e61f0a2b9c.tar.gz llvm-29ebecb11ab538cab4247a064fba51e61f0a2b9c.tar.bz2 |
Bailout if libpluto finds no schedule
Older versions of libpluto crashed, if no schedule was found. Recent
versions return NULL. We detect this and keep the original schedule.
llvm-svn: 164376
Diffstat (limited to 'polly')
-rw-r--r-- | polly/lib/Pluto.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/polly/lib/Pluto.cpp b/polly/lib/Pluto.cpp index 95eb113..0ed1c1b 100644 --- a/polly/lib/Pluto.cpp +++ b/polly/lib/Pluto.cpp @@ -143,6 +143,9 @@ bool PlutoOptimizer::runOnScop(Scop &S) { isl_union_set_free(Domain); isl_union_map_free(Deps); + if (!Schedule) + return false; + Schedule = isl_union_map_apply_domain(Schedule, isl_union_map_reverse(ToPlutoNames)); |