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
This commit is contained in:
Tobias Grosser 2012-09-21 16:24:13 +00:00
parent e63adc5476
commit 29ebecb11a
1 changed files with 3 additions and 0 deletions

View File

@ -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));