[llvm] [GVN] use `AssertingVH` for leaders to improve compilation time (PR #175870)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 23:55:29 PDT 2026


================
@@ -819,33 +818,27 @@ void GVNPass::LeaderMap::erase(uint32_t N, Instruction *I,
     return;
 
   if (Prev) {
+    // Non-head node: unlink and destroy
----------------
antoniofrighetto wrote:

Comments should end with dot (here and elsewhere).

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


More information about the llvm-commits mailing list