[PATCH] D26675: [LoopUnroll] Modify a comment to clarify the usage of TripCount. NFC.

Haicheng Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 30 15:10:49 PST 2016


haicheng added a comment.

How about rewriting the whole paragraph as this?

TripCount is the upper bound of the iteration on which control exits LatchBlock.  Control may exit the loop prior to TripCount iterations either via an early branch of other loop block or via LatchBlock terminator.  This is relaxed from the general definition of trip count which is the number of times the loop header executes.  Note that UnrollLoop assumes that the loop counter test is in LatchBlock in order to remove unnecesssary instances of the test.


Repository:
  rL LLVM

https://reviews.llvm.org/D26675





More information about the llvm-commits mailing list