[PATCH] D82550: [SLPVectorizer] handle vectorized lib functions
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 12:54:15 PDT 2020
ABataev added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:5208
+ bool SrcMayWrite = BundleMember->Inst->mayWriteToMemory() &&
+ !isVectorizableLibFunctionCall(BundleMember->Inst);
unsigned numAliased = 0;
----------------
fpetrogalli wrote:
> ABataev wrote:
> > Still, this is a bad solution. Add proper attributes to the vector variants of the functions, so all memory access interfaces could properly handle such functions.
> HI @ABataev, if I understood correctly, you are asking to add a new attribute that guaranteed that the function does not have side effects? If that's the case, that is already guaranteed by the `vector-function-abi-variant` attribute.
Hi. No, what I'm asking is to mark the vectorized function versions with attributes that they don't write to the memory (what this change implies), so all attribute interfaces properly handle such functions as no-write functions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82550/new/
https://reviews.llvm.org/D82550
More information about the llvm-commits
mailing list