[polly] r248687 - Drop unused variable

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 27 10:54:50 PDT 2015


Author: grosser
Date: Sun Sep 27 12:54:50 2015
New Revision: 248687

URL: http://llvm.org/viewvc/llvm-project?rev=248687&view=rev
Log:
Drop unused variable

Modified:
    polly/trunk/include/polly/ScopInfo.h
    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=248687&r1=248686&r2=248687&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Sun Sep 27 12:54:50 2015
@@ -1502,10 +1502,6 @@ class ScopInfo : public RegionPass {
   // must live until #scop is deleted.
   AccFuncMapType AccFuncMap;
 
-  // Pre-created zero for the scalar accesses, with it we do not need create a
-  // zero scev every time when we need it.
-  const SCEV *ZeroOffset;
-
   // The Scop
   Scop *scop;
   isl_ctx *ctx;

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=248687&r1=248686&r2=248687&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Sun Sep 27 12:54:50 2015
@@ -2938,7 +2938,8 @@ void ScopInfo::buildMemoryAccess(
 
   // FIXME: Size of the number of bytes of an array element, not the number of
   // elements as probably intended here.
-  const SCEV *SizeSCEV = SE->getConstant(ZeroOffset->getType(), Size);
+  const SCEV *SizeSCEV =
+      SE->getConstant(TD->getIntPtrType(Inst->getContext()), Size);
 
   if (!IsAffine && Type == MemoryAccess::MUST_WRITE)
     Type = MemoryAccess::MAY_WRITE;
@@ -3126,7 +3127,6 @@ bool ScopInfo::runOnRegion(Region *R, RG
   AA = &getAnalysis<AAResultsWrapperPass>().getAAResults();
   TD = &F->getParent()->getDataLayout();
   DominatorTree &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
-  ZeroOffset = SE->getConstant(TD->getIntPtrType(F->getContext()), 0);
 
   scop = buildScop(*R, DT);
 




More information about the llvm-commits mailing list