[polly] r295833 - [DeLICM] Print message when zone analysis is not available on -analysis.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 05:48:35 PST 2017


Author: meinersbur
Date: Wed Feb 22 07:48:35 2017
New Revision: 295833

URL: http://llvm.org/viewvc/llvm-project?rev=295833&view=rev
Log:
[DeLICM] Print message when zone analysis is not available on -analysis.

This is to distinguish the cases that analysis has failed from the case
where not transformation was performed.

Modified:
    polly/trunk/lib/Transform/DeLICM.cpp

Modified: polly/trunk/lib/Transform/DeLICM.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/DeLICM.cpp?rev=295833&r1=295832&r2=295833&view=diff
==============================================================================
--- polly/trunk/lib/Transform/DeLICM.cpp (original)
+++ polly/trunk/lib/Transform/DeLICM.cpp Wed Feb 22 07:48:35 2017
@@ -1593,6 +1593,11 @@ public:
 
   /// Dump the internal information about a performed DeLICM to @p OS.
   void print(llvm::raw_ostream &OS, int indent = 0) {
+    if (!Zone.isUsable()) {
+      OS << "Zone not computed\n";
+      return;
+    }
+
     printAccesses(OS, indent);
   }
 };




More information about the llvm-commits mailing list