Skip to content

Commit 40380fd

Browse files
committed
Temp changes for debugging linux failure
1 parent ea7d4ec commit 40380fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/SILOptimizer/Transforms/CSE.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,12 @@ bool llvm::DenseMapInfo<SimpleValue>::isEqual(SimpleValue LHS,
566566
};
567567
bool isEqual =
568568
LHSI->getKind() == RHSI->getKind() && LHSI->isIdenticalTo(RHSI, opCmp);
569-
assert(!isEqual || getHashValue(LHS) == getHashValue(RHS));
569+
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+
}
570575
return isEqual;
571576
}
572577

0 commit comments

Comments
 (0)