[PATCH] D87169: SVML support for log10, sqrt
Alexander Yermolovich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 4 14:56:40 PDT 2020
ayermolo created this revision.
ayermolo added reviewers: wenlei, craig.topper, hoyFB, karthiksenthil.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
ayermolo requested review of this revision.
Although LLVM supports vectorization of loops containing log10/sqrt, it did not support using SVML implementation of it. Added support so that when clang is invoked with -fveclib=SVML now an appropriate SVML library log2 implementation will be invoked.
Follow up on: https://reviews.llvm.org/D77114
Tests:
Added unit tests to svml-calls.ll, svml-calls-finite.ll. Can be run with llvm-lint.
Created a simple c++ file that tests log10/sqrt, and used clang+ to build it, and output final assembly.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87169
Files:
llvm/include/llvm/Analysis/VecFuncs.def
llvm/test/Transforms/LoopVectorize/X86/svml-calls-finite.ll
llvm/test/Transforms/LoopVectorize/X86/svml-calls.ll
llvm/test/Transforms/Util/add-TLI-mappings.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87169.290035.patch
Type: text/x-patch
Size: 14755 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200904/fb60b512/attachment.bin>
More information about the llvm-commits
mailing list