Skip to content

Commit a8fcdb8

Browse files
committed
[ConstraintSystem] Remove an unnecessary SIMD special case in
`DisjunctionStep::shortCircuitDisjunctionAt`. This code is unnecessary because SIMD overloads are in their own partition, so the short circuiting will happen automatically.
1 parent c9100c4 commit a8fcdb8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/Sema/CSStep.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -640,18 +640,6 @@ bool DisjunctionStep::shortCircuitDisjunctionAt(
640640
if (currentChoice->getKind() == ConstraintKind::CheckedCast)
641641
return true;
642642

643-
// Extra checks for binding of operators
644-
if (currentChoice->getKind() == ConstraintKind::BindOverload &&
645-
currentChoice->getOverloadChoice().getDecl()->isOperator() &&
646-
lastSuccessfulChoice->getKind() == ConstraintKind::BindOverload &&
647-
lastSuccessfulChoice->getOverloadChoice().getDecl()->isOperator()) {
648-
649-
// If we have a SIMD operator, and the prior choice was not a SIMD
650-
// Operator, we're done.
651-
if (isSIMDOperator(currentChoice->getOverloadChoice().getDecl()) &&
652-
!isSIMDOperator(lastSuccessfulChoice->getOverloadChoice().getDecl()))
653-
return true;
654-
}
655643
return false;
656644
}
657645

0 commit comments

Comments
 (0)