[PATCH] D44919: [LoopUnroll][NFC] Remove redundant canPeel check

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 2 09:24:17 PDT 2018


mkazantsev added a comment.

One more way to fix it is to zero `UP.PeelCount` before every return from `computeUnrollCount` that stands before `computePeelCount`. It will fix both compile time/unefficient code issue with your patch and the assertion failire.


Repository:
  rL LLVM

https://reviews.llvm.org/D44919





More information about the llvm-commits mailing list