[PATCH] D113468: Fix nondeterminism in debuginfo generation

Stephen Tozer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 9 01:22:06 PST 2021


StephenTozer accepted this revision.
StephenTozer added a comment.
This revision is now accepted and ready to land.

LGTM! Good catch on this one, I thought I'd removed all the DenseMap iteration errors but I guess this one slipped by. There's a small suggestion in the inline comments, but feel free to ignore it - it's more of a preference than a rule. Shouldn't need a test either since this patch is trivial and solves a determinism issue, so this should be fine as-is.



================
Comment at: llvm/lib/CodeGen/RegAllocFast.cpp:445-447
+    if (ProcessedSet.contains(DBG))
+      continue;
+    ProcessedSet.insert(DBG);
----------------
Small suggestion - some prefer the above form for brevity, though personally I'm fine with either.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113468/new/

https://reviews.llvm.org/D113468



More information about the llvm-commits mailing list