@@ -244,25 +244,6 @@ DISubprogram *CollectDebugInfoForCloning(const Function &F,
244
244
CloneFunctionChangeType Changes,
245
245
DebugInfoFinder &DIFinder);
246
246
247
- // / Based on \p Changes and \p DIFinder return debug info that needs to be
248
- // / identity mapped during Metadata cloning.
249
- // /
250
- // / NOTE: Such \a MetadataSetTy can be used by \a CloneFunction* to directly
251
- // / specify metadata that should be identity mapped (and hence not cloned). The
252
- // / metadata will be identity mapped in \a ValueToValueMapTy on first use. There
253
- // / are several reasons for doing it this way rather than eagerly identity
254
- // / mapping metadata nodes in a \a ValueMap:
255
- // / 1. Mapping metadata is not cheap, particularly because of tracking.
256
- // / 2. When cloning a Function we identity map lots of global module-level
257
- // / metadata to avoid cloning it, while only a fraction of it is actually
258
- // / used by the function. Mapping on first use is a lot faster for modules
259
- // / with meaningful amount of debug info.
260
- // / 3. Eagerly identity mapping metadata makes it harder to cache module-level
261
- // / data (e.g. a set of metadata nodes in a \a DICompileUnit).
262
- MetadataSetTy FindDebugInfoToIdentityMap (CloneFunctionChangeType Changes,
263
- DebugInfoFinder &DIFinder,
264
- DISubprogram *SPClonedWithinModule);
265
-
266
247
// / This class captures the data input to the InlineFunction call, and records
267
248
// / the auxiliary results produced by it.
268
249
class InlineFunctionInfo {
0 commit comments