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

Raghesh Aloor raghesh.a at gmail.com
Thu Jan 12 22:02:13 PST 2012


Author: raghesh
Date: Fri Jan 13 00:02:13 2012
New Revision: 148100

URL: http://llvm.org/viewvc/llvm-project?rev=148100&view=rev
Log:
Memaccess: Removing some unwanted code


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=148100&r1=148099&r2=148100&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Fri Jan 13 00:02:13 2012
@@ -377,9 +377,6 @@
   /// @brief Get the memory access offset to be added to the base address
   std::vector <Value*> getMemoryAccessIndex(__isl_keep isl_map *AccessRelation,
                                             Value *BaseAddress) {
-    isl_int OffsetMPZ;
-    isl_int_init(OffsetMPZ);
-
     assert((isl_map_dim(AccessRelation, isl_dim_out) == 1)
            && "Only single dimensional access functions supported");
 
@@ -396,8 +393,6 @@
     Value *NullValue = Constant::getNullValue(ArrayElementType);
     IndexArray.push_back(NullValue);
     IndexArray.push_back(OffsetValue);
-
-    isl_int_clear(OffsetMPZ);
     return IndexArray;
   }
 





More information about the llvm-commits mailing list