This is an archive of the discontinued LLVM Phabricator instance.

[ADT][BitVector] Add push_back()
ClosedPublic

Authored by RKSimon on Sep 18 2018, 7:39 AM.

Details

Summary

Add a higher performance alternative to calling resize() every time which performs a lot of clearing to zero - when we're adding a single bit most of the time this will be completely unnecessary.

Converting CodeGenDAGPatterns::GenerateVariants() to use this saves 10secs in debug builds of x86 -gen-dag-isel

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Sep 18 2018, 7:39 AM
vsk added a subscriber: vsk.Sep 18 2018, 11:13 AM

LGTM. As this is somewhat fundamental change another +1 would be nice.

zturner accepted this revision.Sep 18 2018, 11:22 AM

lgtm as well

This revision is now accepted and ready to land.Sep 18 2018, 11:22 AM
This revision was automatically updated to reflect the committed changes.