public void invalidateAllLoads(){
  if (!doMemory)   return;
  int i=0;
  while (i < cache.size()) {
    AvailableExpression ae=cache.get(i);
    if (ae.isLoadOrStore()) {
      cache.remove(i);
      continue;
    }
    i++;
  }
}

public void invalidateAllLoads ( ) { if ( ! doMemory ) return ; int i = 0 ; while ( i < cache . size ( ) ) { AvailableExpression ae = cache . get ( i ) ; if ( ae . isLoadOrStore ( ) ) { cache . remove ( i ) ; continue ; } i ++ ; } }
eliminate all ae tuples that cache any memory location .
