Details
Diff Detail
Event Timeline
| lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp | ||
|---|---|---|
| 55 | Yes, because the map stores std::string of functions name. The name from Function can dissapear because the Function can dissapear. | |
| 186 | The type is different than you think. It is StringMapEntry, so I am pushing pointers to StringMapEntry. | |
| lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp | ||
|---|---|---|
| 55 | 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 | ||
|---|---|---|
| 55–57 | exactly. | |
Lgtm.
| lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp | ||
|---|---|---|
| 55–57 | Thanks for explaining | |
Does this line need to change?