This is an archive of the discontinued LLVM Phabricator instance.

[libc][math] Improve the performance of subtraction for UInt<>.
ClosedPublic

Authored by lntue on Nov 22 2022, 8:38 AM.

Details

Summary

Use built-in sub_with_borrow to improve the performance of subtraction
for UInt<>.

Microbenchmark: https://quick-bench.com/q/UEg6Z6VK4PP2yLBtTi9C0cL9xpY

Diff Detail

Event Timeline

lntue created this revision.Nov 22 2022, 8:38 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 22 2022, 8:38 AM
lntue requested review of this revision.Nov 22 2022, 8:38 AM
lntue edited the summary of this revision. (Show Details)Nov 22 2022, 8:39 AM
sivachandra accepted this revision.Nov 29 2022, 11:19 PM
This revision is now accepted and ready to land.Nov 29 2022, 11:19 PM