[PATCH] D111363: [VectorCombine] Scalarize vector GEP if that isn't more costly
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 7 15:22:35 PDT 2021
lebedev.ri created this revision.
lebedev.ri added reviewers: RKSimon, spatel, fhahn.
lebedev.ri added a project: LLVM.
Herald added a subscriber: hiraditya.
lebedev.ri requested review of this revision.
As noted in https://reviews.llvm.org/D111220#3048397,
after masked memory intrinsic has been scalarized,
we may have an opportunity to improve the IR,
because the pointers were scalarized via `extractelement`,
but we might be able to fold them into `getelementptr`'s.
We'd also need to schedule another VectorCombine run
somewhere after ScalarizeMaskedMemIntrin in backend IR phase.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111363
Files:
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
llvm/test/Transforms/VectorCombine/X86/scalarize-vector-gep.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111363.378027.patch
Type: text/x-patch
Size: 28071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211007/ad1cd8e3/attachment.bin>
More information about the llvm-commits
mailing list