diff options
author | Francesco Petrogalli <francesco.petrogalli@arm.com> | 2019-12-13 19:15:29 +0000 |
---|---|---|
committer | Francesco Petrogalli <francesco.petrogalli@arm.com> | 2019-12-13 19:42:04 +0000 |
commit | 19f73f0d1b8d4f4a7b7451fea33a35015fe0942d (patch) | |
tree | 426b50dc3a7f66a447e1cd38f710eaef25a2cf12 /llvm/lib/Transforms/Utils/ModuleUtils.cpp | |
parent | 193da743db63bc7299717f583a63e68d55408731 (diff) | |
download | llvm-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/Transforms/Utils/ModuleUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/ModuleUtils.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/ModuleUtils.cpp b/llvm/lib/Transforms/Utils/ModuleUtils.cpp index 51c6450..b94f57e 100644 --- a/llvm/lib/Transforms/Utils/ModuleUtils.cpp +++ b/llvm/lib/Transforms/Utils/ModuleUtils.cpp @@ -11,16 +11,14 @@ //===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/ModuleUtils.h" -#include "llvm/Analysis/TargetLibraryInfo.h" #include "llvm/Analysis/VectorUtils.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Function.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/Module.h" #include "llvm/Support/raw_ostream.h" -using namespace llvm; -#define DEBUG_TYPE "moduleutils" +using namespace llvm; static void appendToGlobalArray(const char *Array, Module &M, Function *F, int Priority, Constant *Data) { @@ -300,9 +298,8 @@ void VFABI::setVectorVariantNames( Module *M = CI->getModule(); #ifndef NDEBUG for (const std::string &VariantMapping : VariantMappings) { - LLVM_DEBUG(dbgs() << "VFABI: adding mapping '" << VariantMapping << "'\n"); Optional<VFInfo> VI = VFABI::tryDemangleForVFABI(VariantMapping); - assert(VI.hasValue() && "Cannot add an invalid VFABI name."); + assert(VI.hasValue() && "Canno add an invalid VFABI name."); assert(M->getNamedValue(VI.getValue().VectorName) && "Cannot add variant to attribute: " "vector function declaration is missing."); |