This is an archive of the discontinued LLVM Phabricator instance.

Cleanup __uninitialized_temporary_buffer internals.
AbandonedPublic

Authored by EricWF on Jun 29 2023, 3:43 PM.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

There are a few improvements this patch makes. First, it only
uses aligned allocation when the type actually requires it. This
addresses a sizable user-reported performance regression in some of the
algorithms.

Second, it removes a significant amount unused template & function parameters,
which improves code size and makes the type less error prone and more readable.

And finally, it fixes a bug where operator new/delete were being called
directly, rather than as a builtin -- preventing the compiler from
eliding the allocation.

Diff Detail

Event Timeline

EricWF created this revision.Jun 29 2023, 3:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 3:43 PM
EricWF requested review of this revision.Jun 29 2023, 3:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 3:43 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
EricWF abandoned this revision.Jun 29 2023, 3:44 PM

Sorry, I'm trying to upload to the existing review.