[GSoC 2016] [Polly] [FIX] Determination of statements that contain matrix
multiplication
Fix small issues related to characters, operators and descriptions of tests.
Differential Revision: http://reviews.llvm.org/D20806
llvm-svn: 271264
diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp
index 0fd7711..784c970 100644
--- a/polly/lib/Transform/ScheduleOptimizer.cpp
+++ b/polly/lib/Transform/ScheduleOptimizer.cpp
@@ -233,7 +233,7 @@
/// 2. Extend it to a set, which has exactly VectorWidth iterations for
/// any prefix from the set that was built on the previous step.
/// 3. Subtract loop domain from it, project out the vector loop dimension and
-/// get a set of prefixes, which don’t have exactly VectorWidth iterations.
+/// get a set of prefixes, which don't have exactly VectorWidth iterations.
/// 4. Subtract it from all prefixes of the vector loop and get the desired
/// set.
///
@@ -431,7 +431,7 @@
/// loop to the outer loop).
/// 2. all memory accesses of the statement except from the last one, are
/// read memory access and the last one is write memory access.
-/// 3. all subscripts of the last memory access of the statement don’t contain
+/// 3. all subscripts of the last memory access of the statement don't contain
/// the variable used in the inner loop.
///
/// @param PartialSchedule The PartialSchedule that contains a SCoP statement
@@ -445,14 +445,14 @@
auto MemA = ScpStmt->begin();
for (unsigned i = 0; i < ScpStmt->size() - 2 && MemA != ScpStmt->end();
i++, MemA++)
- if (!(*MemA)->isRead() or
- ((*MemA)->isArrayKind() and
- !((*MemA)->isStrideOne(isl_map_copy(PartialSchedule)) or
+ if (!(*MemA)->isRead() ||
+ ((*MemA)->isArrayKind() &&
+ !((*MemA)->isStrideOne(isl_map_copy(PartialSchedule)) ||
(*MemA)->isStrideZero(isl_map_copy(PartialSchedule)))))
return false;
MemA++;
- if (!(*MemA)->isWrite() or !(*MemA)->isArrayKind() or
- !((*MemA)->isStrideOne(isl_map_copy(PartialSchedule)) or
+ if (!(*MemA)->isWrite() || !(*MemA)->isArrayKind() ||
+ !((*MemA)->isStrideOne(isl_map_copy(PartialSchedule)) ||
(*MemA)->isStrideZero(isl_map_copy(PartialSchedule))))
return false;
auto DimNum = isl_map_dim(PartialSchedule, isl_dim_in);