Skip to content

Commit ea3cf9e

Browse files
committed
CSE of a NonValueInstruction is a no-op, remove handling cond_fail
1 parent 9b5284c commit ea3cf9e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/SILOptimizer/Transforms/CSE.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,6 @@ class HashVisitor : public SILInstructionVisitor<HashVisitor, llvm::hash_code> {
235235
lookThroughOwnershipInsts(X->getOperand()));
236236
}
237237

238-
hash_code visitCondFailInst(CondFailInst *X) {
239-
return llvm::hash_combine(X->getKind(), X->getOperand());
240-
}
241-
242238
hash_code visitClassMethodInst(ClassMethodInst *X) {
243239
return llvm::hash_combine(X->getKind(), X->getType(),
244240
lookThroughOwnershipInsts(X->getOperand()));
@@ -1130,7 +1126,6 @@ bool CSE::canHandle(SILInstruction *Inst) {
11301126
case SILInstructionKind::IndexAddrInst:
11311127
case SILInstructionKind::PointerToAddressInst:
11321128
case SILInstructionKind::AddressToPointerInst:
1133-
case SILInstructionKind::CondFailInst:
11341129
case SILInstructionKind::EnumInst:
11351130
case SILInstructionKind::UncheckedEnumDataInst:
11361131
case SILInstructionKind::UncheckedTrivialBitCastInst:

0 commit comments

Comments
 (0)