[PATCH] D67905: [LV] Vectorizer should adjust trip count in profile information

Evgeniy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 03:43:53 PST 2019


ebrevnov updated this revision to Diff 229260.
ebrevnov added a comment.

I realized that current implementation has a flaw and and we should take into account that actual number of iterations is one greater than back edge taken count. In addition I believe that current structuring of calculations is easier for understanding.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67905/new/

https://reviews.llvm.org/D67905

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/check-prof-info.ll
  llvm/test/Transforms/LoopVectorize/hot_short_tc_loop.ll
  llvm/test/Transforms/LoopVectorize/tripcount.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67905.229260.patch
Type: text/x-patch
Size: 12847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191114/615d05fd/attachment.bin>


More information about the llvm-commits mailing list