[all-commits] [llvm/llvm-project] d1be92: SVML support for log2

WenleiHe via All-commits all-commits at lists.llvm.org
Thu Sep 3 11:59:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d1be928d23fe6b6770be007c7fd0753ca4d17516
      https://github.com/llvm/llvm-project/commit/d1be928d23fe6b6770be007c7fd0753ca4d17516
  Author: Wenlei He <aktoon at gmail.com>
  Date:   2020-09-03 (Thu, 03 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

  Log Message:
  -----------
  SVML support for log2

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.

Reviewed By: wenlei, craig.topper

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




More information about the All-commits mailing list