Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp | ||
---|---|---|
55 ↗ | (On Diff #66195) | Yes, because the map stores std::string of functions name. The name from Function can dissapear because the Function can dissapear. |
186 ↗ | (On Diff #66195) | The type is different than you think. It is StringMapEntry, so I am pushing pointers to StringMapEntry. |
lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp | ||
---|---|---|
55 ↗ | (On Diff #66195) | The Caller function wouldn't have disappeared by here. The reason it needed to change is that NonImportedCallers was changed to store StringRef instead of a std::string, and we can use the StringRef owned by NodesMap to avoid creating a new copy of the string. |
lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp | ||
---|---|---|
52–59 ↗ | (On Diff #66393) | exactly. |
Comment Actions
Lgtm.
lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp | ||
---|---|---|
52–59 ↗ | (On Diff #66393) | Thanks for explaining |