diff options
author | Paschalis Mpeis <paschalis.mpeis@arm.com> | 2023-12-06 17:14:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-06 17:14:58 +0000 |
commit | 7b83f69db4a57c63c230d45ca2dc52b024612c17 (patch) | |
tree | 3c395fdeaf8a97e36398bcce6fedd67cef7d2c70 /llvm/lib/Transforms/Utils/ModuleUtils.cpp | |
parent | 384f916ea899ea6ac9af4a3fb9d0a5b03937acfe (diff) | |
download | llvm-7b83f69db4a57c63c230d45ca2dc52b024612c17.zip llvm-7b83f69db4a57c63c230d45ca2dc52b024612c17.tar.gz llvm-7b83f69db4a57c63c230d45ca2dc52b024612c17.tar.bz2 |
[NFC] Replace CallInst with FunctionType in VFABI, VFShape API (#74569)
Minor simplification applied to VFShape::getScalarShape,
VFShape::get, and VFABI::tryDemangleForVFABI methods.
Also, remove unnecessary `static_cast` in `SLPVectorizer.cpp`
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/ModuleUtils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/ModuleUtils.cpp b/llvm/lib/Transforms/Utils/ModuleUtils.cpp index fc42df7..7de0959 100644 --- a/llvm/lib/Transforms/Utils/ModuleUtils.cpp +++ b/llvm/lib/Transforms/Utils/ModuleUtils.cpp @@ -346,7 +346,8 @@ void VFABI::setVectorVariantNames(CallInst *CI, #ifndef NDEBUG for (const std::string &VariantMapping : VariantMappings) { LLVM_DEBUG(dbgs() << "VFABI: adding mapping '" << VariantMapping << "'\n"); - std::optional<VFInfo> VI = VFABI::tryDemangleForVFABI(VariantMapping, *CI); + std::optional<VFInfo> VI = + VFABI::tryDemangleForVFABI(VariantMapping, CI->getFunctionType()); assert(VI && "Cannot add an invalid VFABI name."); assert(M->getNamedValue(VI->VectorName) && "Cannot add variant to attribute: " |