[all-commits] [llvm/llvm-project] c1e252: [libc] Add -mavx2 together with -mfma to allow cla...

lntue via All-commits all-commits at lists.llvm.org
Fri Feb 3 12:12:26 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1e252417e399557157e977d8bfb3033bd567f46
      https://github.com/llvm/llvm-project/commit/c1e252417e399557157e977d8bfb3033bd567f46
  Author: Tue Ly <lntue at google.com>
  Date:   2023-02-03 (Fri, 03 Feb 2023)

  Changed paths:
    M libc/cmake/modules/LLVMLibCObjectRules.cmake
    M libc/test/src/math/CMakeLists.txt

  Log Message:
  -----------
  [libc] Add -mavx2 together with -mfma to allow clang pre-12 to generate fma
instructions.

For clang-11, having -mfma without -mavx2 does not generate fma
instructions, causing a build bot to fail on log10_test.

Reviewed By: sivachandra

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




More information about the All-commits mailing list