This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add diff and perf targets for more math functions
ClosedPublic

Authored by hedingarcia on Aug 4 2021, 7:40 AM.

Details

Summary

Comparing the run time of math functions from LLVM libc
with the MSVCRT libc:

functionperf-LLVM libcperf-MSVCRT
ceilf2.36 mins (141491389600 ns)47.10 sec (47100940100 ns)
exp2f6.37 mins (358441794700 ns)12.39 mins (719404388300 ns)
expf6.35 mins (381204661800 ns)6.17 mins (346150163200 ns)
fabsf1.18 mins (78425546600 ns)53.75 sec (53745301900 ns)
floorf3.15 mins (164770963800 ns)45.94 sec (45935988400 ns)
logbf4.38 mins (262508058800 ns)55.47 sec (55466377700 ns)
nearbyintf3.20 mins (167972868000 ns)9.13 mins (523822963600 ns)
rintf3.20 mins (168001498700 ns)22.35 mins (1341266448800 ns)
roundf2.35 mins (141151500600 ns)1.42 mins (85326429800 ns)
truncf2.31 mins (114846424000 ns)59.41 sec (59414309100 ns)

Evaluating the number of differing results in Windows:

functiondiff
ceilf8388606 differing results
exp2f213303887 differing results
expf193922 differing results
fabsf8388606 differing results
floorf8388606 differing results
logbf0 differing results
nearbyintf0 differing results
rintf0 differing results
roundf0 differing results
truncf0 differing results

Diff Detail

Event Timeline

hedingarcia created this revision.Aug 4 2021, 7:40 AM
hedingarcia requested review of this revision.Aug 4 2021, 7:40 AM

[libc] Fixed the format of certain comments

[libc] Added exp2f's diff and perf targets

hedingarcia edited the summary of this revision. (Show Details)Aug 5 2021, 6:29 AM
sivachandra accepted this revision.Aug 5 2021, 9:03 AM
This revision is now accepted and ready to land.Aug 5 2021, 9:03 AM