[PATCH] D86730: SVML support for log2
Alexander Yermolovich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 11:22:11 PDT 2020
ayermolo created this revision.
ayermolo added a project: LLVM.
ayermolo requested review of this revision.
Although LLVM supports vectorization of loops containing log2, 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 log2, and used clang+ to build it, and output final assembly.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86730
Files:
llvm/include/llvm/Analysis/VecFuncs.def
llvm/test/Transforms/LoopVectorize/X86/svml-calls-finite.ll
llvm/test/Transforms/LoopVectorize/X86/svml-calls.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86730.288395.patch
Type: text/x-patch
Size: 7716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200827/c6f18c36/attachment.bin>
More information about the llvm-commits
mailing list