taco-oopsla2017/src/lower/lower.cpp
static bool needsMerge(MergeLattice lattice) {
  if (lattice.getSize() > 1) {
    return true;
  }

  int notRandomAccess = 0;
  for (auto& iterator : lattice.getIterators()) {
    if ((!iterator.isRandomAccess()) && (++notRandomAccess > 1)) {
      return true;
    }
  }
  return false;
}
/// Returns true iff the lattice must be merged, false otherwise. A lattice
/// must be merged iff it has more than one lattice point, or two or more of
/// its iterators are not random access.
Returns true iff the lattice must be merged, false otherwise. A lattice
must be merged iff it has more than one lattice point, or two or more of
its iterators are not random access.
Returns true iff the lattice must be merged false otherwise . A lattice must be merged iff it has more than one lattice point or two or more of its iterators are not random access .
static bool needsMerge(MergeLattice lattice) {
  if (lattice.getSize() > 1) {
    return true;
  }
  int notRandomAccess = 0;
  for (auto& iterator : lattice.getIterators()) {
    if ((!iterator.isRandomAccess()) && (++notRandomAccess > 1)) {
      return true;
    }
  }
  return false;
}
static bool needsMerge ( MergeLattice lattice ) { if ( lattice . getSize ( ) > 1 ) { return true ; } int notRandomAccess = 0 ; for ( auto & iterator : lattice . getIterators ( ) ) { if ( ( ! iterator . isRandomAccess ( ) ) && ( ++ notRandomAccess > 1 ) ) { return true ; } } return false ; }
Returns true iff the lattice must be merged, false otherwise.
Returns true iff the lattice must be merged false otherwise .