[PATCH] D38494: [ScalarEvolution] Handling for ICmp occuring in the evolution chain.

Jun Ryung Ju via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 19:54:47 PDT 2017


junryoungju added a comment.

  int values[11];
  int i = 0;
  do {
  
  values[i] = i != 10;
  } while (i++ != 10);

will be removed. from LoopDeletion.

  int values[11];
  int i = 0;
  do {
  
  values[i] = i != 10;
  } while (i++ != 10);
  
  
  print(values[10]);

will not be even optimized.
(this is what I thought)


https://reviews.llvm.org/D38494





More information about the llvm-commits mailing list