[PATCH] D81345: [LV] Vectorize without versioning-for-unit-stride under -Os/-Oz
Ayal Zaks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 7 09:34:32 PDT 2020
Ayal created this revision.
Ayal added reviewers: SjoerdMeijer, fhahn, gilr.
Herald added subscribers: llvm-commits, rkruppe, hiraditya.
Herald added a project: LLVM.
If a loop is in a function marked OptSize, Loop Access Analysis should refrain from generating runtime checks for unit strides that will version the loop.
If a loop is in a function marked OptSize and its vectorization is enabled, it should be vectorized w/o any versioning.
Fixes PR46228.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D81345
Files:
llvm/lib/Analysis/LoopAccessAnalysis.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/X86/optsize.ll
llvm/test/Transforms/LoopVectorize/X86/tail_loop_folding.ll
llvm/test/Transforms/LoopVectorize/optsize.ll
llvm/test/Transforms/LoopVectorize/pr39417-optsize-scevchecks.ll
llvm/test/Transforms/LoopVectorize/runtime-check.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81345.269061.patch
Type: text/x-patch
Size: 30313 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200607/06a0d67c/attachment-0001.bin>
More information about the llvm-commits
mailing list