We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea7d4ec commit 40380fdCopy full SHA for 40380fd
lib/SILOptimizer/Transforms/CSE.cpp
@@ -566,7 +566,12 @@ bool llvm::DenseMapInfo<SimpleValue>::isEqual(SimpleValue LHS,
566
};
567
bool isEqual =
568
LHSI->getKind() == RHSI->getKind() && LHSI->isIdenticalTo(RHSI, opCmp);
569
- assert(!isEqual || getHashValue(LHS) == getHashValue(RHS));
+
570
+ if (isEqual && getHashValue(LHS) != getHashValue(RHS)) {
571
+ llvm::dbgs() << "lhs: "; LHSI->dump();
572
+ llvm::dbgs() << "rhs: "; RHSI->dump();
573
+ llvm_unreachable("isEqual but hash codes not equal!");
574
+ }
575
return isEqual;
576
}
577
0 commit comments