[polly] r255464 - Check if access relation is available before printing

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 13 10:45:50 PST 2015


We should modify the stream operators instead. They should consequently
print (null,nullptr,NULL or N/A) if the given isl pointer is null.

On 12/13, Michael Kruse via llvm-commits wrote:
> 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";
>  }
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits

-- 

Johannes Doerfert
Researcher / PhD Student

Compiler Design Lab (Prof. Hack)
Saarland University, Computer Science
Building E1.3, Room 4.31

Tel. +49 (0)681 302-57521 : doerfert at cs.uni-saarland.de
Fax. +49 (0)681 302-3065  : http://www.cdl.uni-saarland.de/people/doerfert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151213/659f18b0/attachment.sig>


More information about the llvm-commits mailing list