[llvm-commits] [polly] r150376 - /polly/trunk/lib/CodeGeneration.cpp

Tobias Grosser grosser at fim.uni-passau.de
Mon Feb 13 04:29:34 PST 2012


Author: grosser
Date: Mon Feb 13 06:29:34 2012
New Revision: 150376

URL: http://llvm.org/viewvc/llvm-project?rev=150376&view=rev
Log:
CodeGen: Remove unused variable.

Modified:
    polly/trunk/lib/CodeGeneration.cpp

Modified: polly/trunk/lib/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGeneration.cpp?rev=150376&r1=150375&r2=150376&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Mon Feb 13 06:29:34 2012
@@ -86,7 +86,6 @@
 typedef DenseMap<const char*, Value*> CharMapT;
 typedef std::vector<ValueMapT> VectorValueMapT;
 typedef struct {
-  Value *BaseAddress;
   Value *Result;
   IRBuilder<> *Builder;
 }IslPwAffUserInfo;
@@ -218,7 +217,7 @@
   static int mergeIslAffValues(__isl_take isl_set *Set,
                                __isl_take isl_aff *Aff, void *User);
 
-  Value* islPwAffToValue(__isl_take isl_pw_aff *PwAff, Value *BaseAddress);
+  Value* islPwAffToValue(__isl_take isl_pw_aff *PwAff);
 
   /// @brief Get the memory access offset to be added to the base address
   std::vector <Value*> getMemoryAccessIndex(__isl_keep isl_map *AccessRelation,
@@ -449,10 +448,8 @@
   return 0;
 }
 
-Value *BlockGenerator::islPwAffToValue(__isl_take isl_pw_aff *PwAff,
-                                       Value *BaseAddress) {
+Value *BlockGenerator::islPwAffToValue(__isl_take isl_pw_aff *PwAff) {
   IslPwAffUserInfo UserInfo;
-  UserInfo.BaseAddress = BaseAddress;
   UserInfo.Result = NULL;
   UserInfo.Builder = &Builder;
   isl_pw_aff_foreach_piece(PwAff, mergeIslAffValues, &UserInfo);
@@ -468,7 +465,7 @@
          && "Only single dimensional access functions supported");
 
   isl_pw_aff *PwAff = isl_map_dim_max(isl_map_copy(AccessRelation), 0);
-  Value *OffsetValue = islPwAffToValue(PwAff, BaseAddress);
+  Value *OffsetValue = islPwAffToValue(PwAff);
 
   PointerType *BaseAddressType = dyn_cast<PointerType>(
     BaseAddress->getType());





More information about the llvm-commits mailing list