[PATCH] D86400: [NFC][compiler-rt] Factor out __div[sdt]i3 and __mod[dt]i3 implementations
Anatoly Trosinenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 22 09:25:52 PDT 2020
atrosinenko created this revision.
atrosinenko added reviewers: MaskRay, aykevl, uabelho.
Herald added subscribers: Sanitizers, dberris.
Herald added a project: Sanitizers.
atrosinenko requested review of this revision.
An attempt was made to generically recreate these functions as close to the original implementations as possible to reduce possibility of performance any regression.
This patch is intended to simplify implementation of 16-bit integer division/multiplication LibCalls required on 16-bit targets and fixing some UB.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86400
Files:
compiler-rt/lib/builtins/divdi3.c
compiler-rt/lib/builtins/divsi3.c
compiler-rt/lib/builtins/divti3.c
compiler-rt/lib/builtins/int_div_impl.inc
compiler-rt/lib/builtins/moddi3.c
compiler-rt/lib/builtins/modti3.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86400.287196.patch
Type: text/x-patch
Size: 6728 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200822/22ca075e/attachment-0001.bin>
More information about the cfe-commits
mailing list