This is an archive of the discontinued LLVM Phabricator instance.

[InstrProf][NFC] Refactor ProfileDataMap usage
ClosedPublic

Authored by ellis on Nov 30 2021, 4:38 PM.

Details

Summary

Instead of using DenseMap::find() and DenseMap::insert(), use
DenseMap::operator[] to get a reference to the profile data and update
the reference. This simplifies the changes in D114565.

Diff Detail

Event Timeline

ellis created this revision.Nov 30 2021, 4:38 PM
ellis requested review of this revision.Nov 30 2021, 4:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 30 2021, 4:38 PM
kyulee accepted this revision.Dec 1 2021, 11:35 AM
This revision is now accepted and ready to land.Dec 1 2021, 11:35 AM
This revision was automatically updated to reflect the committed changes.