[PATCH] D90342: [POC][LoopVectorizer] Propagate ElementCount to interfaces in preparation for scalable auto-vec.
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 28 14:09:38 PDT 2020
sdesmalen created this revision.
Herald added subscribers: dexonsmith, bmahjour, rogfer01, bollu, hiraditya.
Herald added a reviewer: rengolin.
Herald added a project: LLVM.
sdesmalen requested review of this revision.
Herald added a subscriber: vkmr.
This patch is part of a proof of concept for vectorising a loop using
scalable vectors. The patch is shared for reference and there is no
expectation for this patch to land in the current form.
Some of the changes include:
- Change VFRange to use ElementCount for Start, End.
- Change buildVPlans to take an ElementCount
- Change buildVPlansWithVPRecipes to take an ElementCount
- Change LoopVectorizationCostModel::computeMaxVF to take an ElementCount.
- Change LoopVectorizationCostModel::computeFeasibleMaxVF to return an ElementCount.
This patch is NFC for fixed-width vectors.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90342
Files:
llvm/include/llvm/Support/TypeSize.h
llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90342.301422.patch
Type: text/x-patch
Size: 15277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201028/7ec1b8f5/attachment-0001.bin>
More information about the llvm-commits
mailing list