forked from OSchip/llvm-project
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:
parent
e63adc5476
commit
29ebecb11a
polly/lib
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue