From 43ed25f1d96ce2e39d3654fbe89f986cfa2c559e Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Wed, 22 Feb 2017 13:48:35 +0000 Subject: [PATCH] [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. llvm-svn: 295833 --- polly/lib/Transform/DeLICM.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/polly/lib/Transform/DeLICM.cpp b/polly/lib/Transform/DeLICM.cpp index bf9aea1d6cab..38430951fee6 100644 --- a/polly/lib/Transform/DeLICM.cpp +++ b/polly/lib/Transform/DeLICM.cpp @@ -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); } };