[polly] r255464 - Check if access relation is available before printing
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 13 10:47:03 PST 2015
Author: meinersbur
Date: Sun Dec 13 12:47:02 2015
New Revision: 255464
URL: http://llvm.org/viewvc/llvm-project?rev=255464&view=rev
Log:
Check if access relation is available before printing
Currently MemoryAccesses are not printed before the access relations
are available, but might be printed during gdb sessions.
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=255464&r1=255463&r2=255464&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Sun Dec 13 12:47:02 2015
@@ -747,7 +747,8 @@ void MemoryAccess::print(raw_ostream &OS
}
OS << "[Reduction Type: " << getReductionType() << "] ";
OS << "[Scalar: " << isImplicit() << "]\n";
- OS.indent(16) << getOriginalAccessRelationStr() << ";\n";
+ if (AccessRelation)
+ OS.indent(16) << getOriginalAccessRelationStr() << ";\n";
if (hasNewAccessRelation())
OS.indent(11) << "new: " << getNewAccessRelationStr() << ";\n";
}
More information about the llvm-commits
mailing list