This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Remove SetCount/ClearCount from Flags
ClosedPublic

Authored by teemperor on Sep 13 2019, 2:05 AM.

Details

Summary

These functions are only used in tests where we should test the actual flag values instead of counting all bits for an approximate check.
Also these popcount implementation aren't very efficient and doesn't seem to be optimised to anything fast.

Diff Detail

Repository
rL LLVM

Event Timeline

teemperor created this revision.Sep 13 2019, 2:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2019, 2:05 AM
davide accepted this revision.Sep 13 2019, 9:44 AM

Sure. If anything something like this should live in llvm/Support, but given it's not used, it should live nowhere.

This revision is now accepted and ready to land.Sep 13 2019, 9:44 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2019, 11:01 AM