[polly] r302005 - [ScopInfo] Remove code not needed anymore after r302004
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Wed May 3 01:02:32 PDT 2017
Author: grosser
Date: Wed May 3 03:02:32 2017
New Revision: 302005
URL: http://llvm.org/viewvc/llvm-project?rev=302005&view=rev
Log:
[ScopInfo] Remove code not needed anymore after r302004
Modified:
polly/trunk/include/polly/ScopInfo.h
polly/trunk/lib/Analysis/ScopBuilder.cpp
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=302005&r1=302004&r2=302005&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Wed May 3 03:02:32 2017
@@ -690,11 +690,10 @@ public:
/// @param Kind The kind of memory accessed.
/// @param Subscripts Subscipt expressions
/// @param Sizes Dimension lengths of the accessed array.
- /// @param BaseName Name of the acessed array.
MemoryAccess(ScopStmt *Stmt, Instruction *AccessInst, AccessType AccType,
Value *BaseAddress, Type *ElemType, bool Affine,
ArrayRef<const SCEV *> Subscripts, ArrayRef<const SCEV *> Sizes,
- Value *AccessValue, MemoryKind Kind, StringRef BaseName);
+ Value *AccessValue, MemoryKind Kind);
/// Create a new MemoryAccess that corresponds to @p AccRel.
///
Modified: polly/trunk/lib/Analysis/ScopBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopBuilder.cpp?rev=302005&r1=302004&r2=302005&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopBuilder.cpp (original)
+++ polly/trunk/lib/Analysis/ScopBuilder.cpp Wed May 3 03:02:32 2017
@@ -493,9 +493,6 @@ MemoryAccess *ScopBuilder::addMemoryAcce
if (!Stmt)
return nullptr;
- Value *BaseAddr = BaseAddress;
- std::string BaseName = getIslCompatibleName("MemRef_", BaseAddr, "");
-
bool isKnownMustAccess = false;
// Accesses in single-basic block statements are always excuted.
@@ -521,9 +518,8 @@ MemoryAccess *ScopBuilder::addMemoryAcce
if (!isKnownMustAccess && AccType == MemoryAccess::MUST_WRITE)
AccType = MemoryAccess::MAY_WRITE;
- auto *Access =
- new MemoryAccess(Stmt, Inst, AccType, BaseAddress, ElementType, Affine,
- Subscripts, Sizes, AccessValue, Kind, BaseName);
+ auto *Access = new MemoryAccess(Stmt, Inst, AccType, BaseAddress, ElementType,
+ Affine, Subscripts, Sizes, AccessValue, Kind);
scop->addAccessFunction(Access);
Stmt->addAccess(Access);
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=302005&r1=302004&r2=302005&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Wed May 3 03:02:32 2017
@@ -961,7 +961,7 @@ MemoryAccess::MemoryAccess(ScopStmt *Stm
Type *ElementType, bool Affine,
ArrayRef<const SCEV *> Subscripts,
ArrayRef<const SCEV *> Sizes, Value *AccessValue,
- MemoryKind Kind, StringRef BaseName)
+ MemoryKind Kind)
: Kind(Kind), AccType(AccType), RedType(RT_NONE), Statement(Stmt),
InvalidDomain(nullptr), BaseAddr(BaseAddress), ElementType(ElementType),
Sizes(Sizes.begin(), Sizes.end()), AccessInstruction(AccessInst),
More information about the llvm-commits
mailing list