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

Evgeniy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 23 04:34:23 PDT 2019


ebrevnov created this revision.
Herald added subscribers: llvm-commits, rkruppe, hiraditya.
Herald added a project: LLVM.

Vectorized loop processes VFxUF number of elements in one iteration thus total number of iterations decreases proportionally. In addition epilog loop may not have more than VFxUF - 1 iterations. This patch updates profile information accordingly.


Repository:
  rG LLVM Github Monorepo

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.221285.patch
Type: text/x-patch
Size: 13417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190923/25f98ea9/attachment.bin>


More information about the llvm-commits mailing list