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 b284955 commit 9b5284cCopy full SHA for 9b5284c
lib/SILOptimizer/Transforms/CSE.cpp
@@ -516,7 +516,10 @@ bool llvm::DenseMapInfo<SimpleValue>::isEqual(SimpleValue LHS,
516
return true;
517
return false;
518
};
519
- return LHSI->getKind() == RHSI->getKind() && LHSI->isIdenticalTo(RHSI, opCmp);
+ bool isEqual =
520
+ LHSI->getKind() == RHSI->getKind() && LHSI->isIdenticalTo(RHSI, opCmp);
521
+ assert(!isEqual || getHashValue(LHS) == getHashValue(RHS));
522
+ return isEqual;
523
}
524
525
namespace {
0 commit comments