aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/LoopAccessAnalysis.cpp
diff options
context:
space:
mode:
authorFrancesco Petrogalli <francesco.petrogalli@arm.com>2019-12-13 19:15:29 +0000
committerFrancesco Petrogalli <francesco.petrogalli@arm.com>2019-12-13 19:42:04 +0000
commit19f73f0d1b8d4f4a7b7451fea33a35015fe0942d (patch)
tree426b50dc3a7f66a447e1cd38f710eaef25a2cf12 /llvm/lib/Analysis/LoopAccessAnalysis.cpp
parent193da743db63bc7299717f583a63e68d55408731 (diff)
downloadllvm-19f73f0d1b8d4f4a7b7451fea33a35015fe0942d.zip
llvm-19f73f0d1b8d4f4a7b7451fea33a35015fe0942d.tar.gz
llvm-19f73f0d1b8d4f4a7b7451fea33a35015fe0942d.tar.bz2
Revert "[VectorUtils] Introduce the Vector Function Database (VFDatabase)."
This reverts commit 0be81968a283fd4161cb9ac9748d5ed200926292. The VFDatabase needs some rework to be able to handle vectorization and subsequent scalarization of intrinsics in out-of-tree versions of the compiler. For more details, see the discussion in https://reviews.llvm.org/D67572.
Diffstat (limited to 'llvm/lib/Analysis/LoopAccessAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/LoopAccessAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index 05f6010..26fa5112 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -1845,7 +1845,7 @@ void LoopAccessInfo::analyzeLoop(AliasAnalysis *AA, LoopInfo *LI,
// If the function has an explicit vectorized counterpart, we can safely
// assume that it can be vectorized.
if (Call && !Call->isNoBuiltin() && Call->getCalledFunction() &&
- !VFDatabase::getMappings(*Call).empty())
+ TLI->isFunctionVectorizable(Call->getCalledFunction()->getName()))
continue;
auto *Ld = dyn_cast<LoadInst>(&I);