[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
This commit is contained in:
Michael Kruse 2017-02-22 13:48:35 +00:00
parent 91cdafb86f
commit 43ed25f1d9
1 changed files with 5 additions and 0 deletions

View File

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