llvm/llvm-project

Enable exp10 libcall recognition on linux

Open

#64,677 建立於 2023年8月14日

在 GitHub 查看
 (7 留言) (0 反應) (2 負責人)C++ (10,782 fork)batch import
floating-pointgood first issuellvm:codegenllvm:optimizationsplatform:linux

倉庫指標

Star
 (26,378 star)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

TargetLibraryInfo does not report exp10/exp10f/exp10l as available on Linux, disabling all special library call optimizations:

https://github.com/llvm/llvm-project/blob/c0682840877a21960f4c21a97b5f497d4ccc82d5/llvm/lib/Analysis/TargetLibraryInfo.cpp#L550

The reason cited is these were buggy in glibc prior to version 2.18. Version 2.18 celebrated its 10th birthday this weekend, so I think it's alright to just drop this restriction.

貢獻者指南