[PATCH] D125598: [compiler-rt][builtins] {u, }{div, mod}si3 for Sparc64
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 13 23:35:38 PDT 2022
MaskRay added a comment.
> According to a developer at the FreeBSD project, FreeBSD's total compilation time increases by 2.6% when the host system is built against compiler-rt instead of libgcc. This is likely due to the fact that GCC has assembly-written versions of the division and modulo routines, while compiler-rt does not.
Is 2.6% still the case nowadays? It's hard to believe so much compile time is spent on division and modulo routines. We need evidence.
For these routines, ISTM the performance is not the critical part but maintainability is probably the most important metric. We should just use the portable C implementation.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125598/new/
https://reviews.llvm.org/D125598
More information about the llvm-commits
mailing list