llvm/llvm-project

Enable exp10 libcall recognition on linux

Open

#64.677 geöffnet am 14. Aug. 2023

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (2 zugewiesene Personen)C++ (10.782 Forks)batch import
floating-pointgood first issuellvm:codegenllvm:optimizationsplatform:linux

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide