[llvm] Reapply "[MemProf] Streamline and avoid unnecessary context id duplication (#107918)" (PR #110036)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 13:33:28 PDT 2024


================
@@ -1379,7 +1379,15 @@ void CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::
   DenseSet<uint32_t> LastNodeContextIds = LastNode->getContextIds();
   assert(!LastNodeContextIds.empty());
 
+#ifndef NDEBUG
----------------
teresajohnson wrote:

yeah, I was concerned that I would get compiler warnings about unused variables, since PrevIterCreatedNode is only read by an assert, but I didn't seem to.

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


More information about the llvm-commits mailing list