[PATCH] D67572: [VectorUtils] Introduce the Vector Function Database (VFDatabase).
Francesco Petrogalli via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 09:26:53 PST 2019
fpetrogalli marked 2 inline comments as done.
fpetrogalli added inline comments.
================
Comment at: llvm/lib/Analysis/LoopAccessAnalysis.cpp:1848
if (Call && !Call->isNoBuiltin() && Call->getCalledFunction() &&
- TLI->isFunctionVectorizable(Call->getCalledFunction()->getName()))
+ !VFDatabase::getMappings(*Call).empty())
continue;
----------------
sdesmalen wrote:
> `getMappings` is quite an expensive call, so you'll want to add a special function here that bails out earlier, and doesn't have to demangle string and populate (and possibly sort) an array.
Done, check the implementation of `getVFABIMappings`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67572/new/
https://reviews.llvm.org/D67572
More information about the llvm-commits
mailing list