[llvm-commits] [polly] r164376 - /polly/trunk/lib/Pluto.cpp

Tobias Grosser grosser at fim.uni-passau.de
Fri Sep 21 09:24:13 PDT 2012


Author: grosser
Date: Fri Sep 21 11:24:13 2012
New Revision: 164376

URL: http://llvm.org/viewvc/llvm-project?rev=164376&view=rev
Log:
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.

Modified:
    polly/trunk/lib/Pluto.cpp

Modified: polly/trunk/lib/Pluto.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Pluto.cpp?rev=164376&r1=164375&r2=164376&view=diff
==============================================================================
--- polly/trunk/lib/Pluto.cpp (original)
+++ polly/trunk/lib/Pluto.cpp Fri Sep 21 11:24:13 2012
@@ -143,6 +143,9 @@
   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));
 





More information about the llvm-commits mailing list