This is an archive of the discontinued LLVM Phabricator instance.

[llvm] Remove uses of `std::vector<bool>`
ClosedPublic

Authored by jansvoboda11 on Jan 12 2022, 8:01 AM.

Details

Summary

LLVM Programmer’s Manual strongly discourages the use of std::vector<bool> and suggests llvm::BitVector as a possible replacement.

This patch does just that for llvm.

Diff Detail

Event Timeline

jansvoboda11 created this revision.Jan 12 2022, 8:01 AM
jansvoboda11 requested review of this revision.Jan 12 2022, 8:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2022, 8:01 AM

Might be nice to stage a couple of these in whichever patch allows them to switch over, to make it clear why those APIs are needed/useful.

llvm/lib/Transforms/Utils/SampleProfileInference.cpp
313

It doesn't look like this depends on any of the other in-flight patches; if so, it'd be nice to land this (and others like it) outside of this long queue since they don't need all the pieces to land.

Split patches

This revision is now accepted and ready to land.Jan 13 2022, 1:05 PM
This revision was landed with ongoing or failed builds.Jan 18 2022, 9:20 AM
This revision was automatically updated to reflect the committed changes.