[llvm] [memprof] std::move matchings (NFC) (PR #128933)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 26 12:04:55 PST 2025


================
@@ -929,7 +929,8 @@ memprof::computeUndriftMap(Module &M, IndexedInstrProfReader *MemProfReader,
     longestCommonSequence<LineLocation, GlobalValue::GUID>(
         ProfileAnchors, IRAnchors, std::equal_to<GlobalValue::GUID>(),
         [&](LineLocation A, LineLocation B) { Matchings.try_emplace(A, B); });
-    bool Inserted = UndriftMaps.try_emplace(CallerGUID, Matchings).second;
+    bool Inserted =
----------------
kazutakahirata wrote:

Done.  Thanks!

https://github.com/llvm/llvm-project/pull/128933


More information about the llvm-commits mailing list