[all-commits] [llvm/llvm-project] c81d52: [libc++] Use builtins in more math.h functions.

Ilya Tocar via All-commits all-commits at lists.llvm.org
Wed Feb 10 12:30:06 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c81d52997ac0d1206ea0fd4935964f4c8661daed
      https://github.com/llvm/llvm-project/commit/c81d52997ac0d1206ea0fd4935964f4c8661daed
  Author: Ilya Tokar <tokarip at google.com>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M libcxx/include/math.h

  Log Message:
  -----------
  [libc++] Use builtins in more math.h functions.

Not using builtins doesn't always imply worse code,
but for e. g. isinf, this is 30%+ faster.

Before:
name        time/op
BM_isinf     2.14ns ± 2%

After:
name        time/op
BM_isinf     1.33ns ± 2%

Reviewed By: #libc, ldionne

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




More information about the All-commits mailing list