File tree 2 files changed +8
-7
lines changed 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class ValueMap {
88
88
using MapT = DenseMap<ValueMapCVH, ValueT, DenseMapInfo<ValueMapCVH>>;
89
89
using MDMapT = DenseMap<const Metadata *, TrackingMDRef>;
90
90
// / Map {(InlinedAt, old atom number) -> new atom number}.
91
- using DMAtomT = DenseMap <std::pair<Metadata *, uint64_t >, uint64_t >;
91
+ using DMAtomT = SmallDenseMap <std::pair<Metadata *, uint64_t >, uint64_t >;
92
92
using ExtraData = typename Config::ExtraData;
93
93
94
94
MapT Map;
Original file line number Diff line number Diff line change @@ -119,12 +119,13 @@ struct ClonedCodeInfo {
119
119
// / function, you can specify a ClonedCodeInfo object with the optional fifth
120
120
// / parameter.
121
121
// /
122
- // / Set \p MapAtoms to false to skip mapping source atoms for later remapping.
123
- // / Incorrectly setting false may harm the debugging experience. It's safe to
124
- // / set false if the cloned basic block is destined for a different function or
125
- // / if the original block is deleted. Setting true (default) is always safe
126
- // / (correct) but sometimes unecessary; this option reduces the compile-time
127
- // / impact of Key Instruction in such cases.
122
+ // / \p MapAtoms indicates whether source location atoms should be mapped for
123
+ // / later remapping. Must be true when you duplicate a code path and a source
124
+ // / location is intended to appear twice in the generated instructions. Can be
125
+ // / set to false if you are transplanting code from one place to another.
126
+ // / Setting true (default) is always safe (won't produce incorrect debug info)
127
+ // / but is sometimes unnecessary, causing extra work that could be avoided by
128
+ // / setting the parameter to false.
128
129
BasicBlock *CloneBasicBlock (const BasicBlock *BB, ValueToValueMapTy &VMap,
129
130
const Twine &NameSuffix = " " , Function *F = nullptr ,
130
131
ClonedCodeInfo *CodeInfo = nullptr ,
You can’t perform that action at this time.
0 commit comments