[PATCH] D142258: [LV] Ignore runtime checks threshold when vectorization is forced

Kolya Panchenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 14:53:50 PST 2023


nikolaypanchenko created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
nikolaypanchenko requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.

When number of needed runtime checks exceeds threshold, but user
requested vectorization, loop vectorizer simply doesn't generate them
which results to invalid vector code.
The patch simply forced generation of rt-checks when vectorization is
forced


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142258

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/memcheck_threashold_vec_forced.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142258.490980.patch
Type: text/x-patch
Size: 9703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230120/4a08ebd2/attachment.bin>


More information about the llvm-commits mailing list