[all-commits] [llvm/llvm-project] 9e6478: [InstrProf][NFC] Refactor ProfileDataMap usage
Ellis Hoag via All-commits
all-commits at lists.llvm.org
Wed Dec 1 11:49:50 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9e647806f3f434ee9311a22cf774ce0b3451f268
https://github.com/llvm/llvm-project/commit/9e647806f3f434ee9311a22cf774ce0b3451f268
Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
Date: 2021-12-01 (Wed, 01 Dec 2021)
Changed paths:
M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
Log Message:
-----------
[InstrProf][NFC] Refactor ProfileDataMap usage
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.
Reviewed By: kyulee
Differential Revision: https://reviews.llvm.org/D114828
More information about the All-commits
mailing list