[polly] r211796 - [Refactor] Change memory access dump to preserve space
Johannes Doerfert
jdoerfert at codeaurora.org
Thu Jun 26 11:47:03 PDT 2014
Author: jdoerfert
Date: Thu Jun 26 13:47:03 2014
New Revision: 211796
URL: http://llvm.org/viewvc/llvm-project?rev=211796&view=rev
Log:
[Refactor] Change memory access dump to preserve space
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=211796&r1=211795&r2=211796&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Thu Jun 26 13:47:03 2014
@@ -397,18 +397,18 @@ MemoryAccess::MemoryAccess(const Value *
}
void MemoryAccess::print(raw_ostream &OS) const {
- OS.indent(8) << "Reduction like: " << isReductionLike() << "\n";
switch (Type) {
case READ:
- OS.indent(12) << "ReadAccess := \n";
+ OS.indent(12) << "ReadAccess :=\t";
break;
case MUST_WRITE:
- OS.indent(12) << "MustWriteAccess := \n";
+ OS.indent(12) << "MustWriteAccess :=\t";
break;
case MAY_WRITE:
- OS.indent(12) << "MayWriteAccess := \n";
+ OS.indent(12) << "MayWriteAccess :=\t";
break;
}
+ OS << "[Reduction like: " << isReductionLike() << "]\n";
OS.indent(16) << getAccessRelationStr() << ";\n";
}
More information about the llvm-commits
mailing list