[llvm] [GVN] add reverse leader map to improve compile time (PR #175870)
Meredith Julian via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 14 16:46:27 PST 2026
================
@@ -315,10 +346,13 @@ class GVNPass : public PassInfoMixin<GVNPass> {
LLVM_ABI void insert(uint32_t N, Value *V, const BasicBlock *BB);
LLVM_ABI void erase(uint32_t N, Instruction *I, const BasicBlock *BB);
+#ifndef NDEBUG
LLVM_ABI void verifyRemoved(const Value *Inst) const;
+#endif
void clear() {
NumToLeaders.clear();
TableAllocator.Reset();
+ LeaderToNums.clear();
----------------
mjulian31 wrote:
Looks like this also needs a NDEBUG guard.
https://github.com/llvm/llvm-project/pull/175870
More information about the llvm-commits
mailing list