[llvm-commits] [polly] r148328 - /polly/trunk/lib/Analysis/ScopInfo.cpp

Tobias Grosser grosser at fim.uni-passau.de
Tue Jan 17 12:39:11 PST 2012


Author: grosser
Date: Tue Jan 17 14:39:11 2012
New Revision: 148328

URL: http://llvm.org/viewvc/llvm-project?rev=148328&view=rev
Log:
ScopInfo: Further style improvements

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=148328&r1=148327&r2=148328&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Tue Jan 17 14:39:11 2012
@@ -459,29 +459,33 @@
 }
 
 bool MemoryAccess::isStrideZero(const isl_set *DomainSubset) const {
-  isl_set *Stride = getStride(DomainSubset);
-  isl_set *StrideZero = isl_set_universe(isl_set_get_space(Stride));
-  StrideZero = isl_set_fix_si(StrideZero, isl_dim_set, 0, 0);
+  isl_set *Stride, *StrideZero;
+  bool IsStrideZero;
 
-  bool isStrideZero = isl_set_is_equal(Stride, StrideZero);
+  Stride = getStride(DomainSubset);
+  StrideZero = isl_set_universe(isl_set_get_space(Stride));
+  StrideZero = isl_set_fix_si(StrideZero, isl_dim_set, 0, 0);
+  IsStrideZero = isl_set_is_equal(Stride, StrideZero);
 
   isl_set_free(StrideZero);
   isl_set_free(Stride);
 
-  return isStrideZero;
+  return IsStrideZero;
 }
 
 bool MemoryAccess::isStrideOne(const isl_set *DomainSubset) const {
-  isl_set *Stride = getStride(DomainSubset);
-  isl_set *StrideOne = isl_set_universe(isl_set_get_space(Stride));
-  StrideOne = isl_set_fix_si(StrideOne, isl_dim_set, 0, 1);
+  isl_set *Stride, *StrideOne;
+  bool IsStrideOne;
 
-  bool isStrideOne = isl_set_is_equal(Stride, StrideOne);
+  Stride = getStride(DomainSubset);
+  StrideOne = isl_set_universe(isl_set_get_space(Stride));
+  StrideOne = isl_set_fix_si(StrideOne, isl_dim_set, 0, 1);
+  IsStrideOne = isl_set_is_equal(Stride, StrideOne);
 
   isl_set_free(StrideOne);
   isl_set_free(Stride);
 
-  return isStrideOne;
+  return IsStrideOne;
 }
 
 void MemoryAccess::setNewAccessRelation(isl_map *newAccess) {





More information about the llvm-commits mailing list