[polly] r294733 - [ScopInfo] Use getAccessValue to obtain the accessed value

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 10 02:09:44 PST 2017


Author: grosser
Date: Fri Feb 10 04:09:44 2017
New Revision: 294733

URL: http://llvm.org/viewvc/llvm-project?rev=294733&view=rev
Log:
[ScopInfo] Use getAccessValue to obtain the accessed value

This replaces the use of getOriginalAddrPtr, a value that is stored in
ScopArrayInfo and might at some point not be unique any more. However, the
access value is defined to be unique.

This change is an update on r294576, which only clarified that we need the
original memory access, but where we still remained dependent to have one base
pointer per scop.

This change removes unnecessary uses of MemoryAddress::getOriginalBaseAddr() in
preparation for https://reviews.llvm.org/D28518.

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=294733&r1=294732&r2=294733&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Feb 10 04:09:44 2017
@@ -1188,7 +1188,7 @@ void ScopStmt::addAccess(MemoryAccess *A
 
     ValueReads[AccessVal] = Access;
   } else if (Access->isAnyPHIKind() && Access->isWrite()) {
-    PHINode *PHI = cast<PHINode>(Access->getOriginalBaseAddr());
+    PHINode *PHI = cast<PHINode>(Access->getAccessValue());
     assert(!PHIWrites.lookup(PHI));
 
     PHIWrites[PHI] = Access;




More information about the llvm-commits mailing list