[llvm] [GVN] Improve processBlock for instruction erasure (PR #131753)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 11 06:00:43 PDT 2025
================
@@ -729,8 +728,9 @@ void GVNPass::ValueTable::erase(Value *V) {
/// verifyRemoved - Verify that the value is removed from all internal data
/// structures.
void GVNPass::ValueTable::verifyRemoved(const Value *V) const {
- assert(!ValueNumbering.contains(V) &&
- "Inst still occurs in value numbering map!");
+ if (V != nullptr)
----------------
nikic wrote:
Why is this change necessary?
https://github.com/llvm/llvm-project/pull/131753
More information about the llvm-commits
mailing list