[all-commits] [llvm/llvm-project] 056534: SVML support for log10, sqrt

WenleiHe via All-commits all-commits at lists.llvm.org
Tue Sep 15 17:41:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 056534dc2b15ed1d276bead76f054cc7ac9d2bf1
      https://github.com/llvm/llvm-project/commit/056534dc2b15ed1d276bead76f054cc7ac9d2bf1
  Author: Wenlei He <aktoon at gmail.com>
  Date:   2020-09-15 (Tue, 15 Sep 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/VecFuncs.def
    M llvm/test/Transforms/LoopVectorize/X86/svml-calls-finite.ll
    M llvm/test/Transforms/LoopVectorize/X86/svml-calls.ll
    M llvm/test/Transforms/Util/add-TLI-mappings.ll

  Log Message:
  -----------
  SVML support for log10, sqrt

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.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D87169




More information about the All-commits mailing list