Skip to content

Commit 503d825

Browse files
committed
---
yaml --- r: 326647 b: refs/heads/tensorflow c: df47d1b h: refs/heads/master i: 326645: 71fb207 326643: 88ecd43 326639: edf8aef
1 parent 62793e6 commit 503d825

File tree

3 files changed

+1
-30
lines changed

3 files changed

+1
-30
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819-
refs/heads/tensorflow: cbadd7ffc29c7dc00e532943ef2edbdda5fbfc4a
819+
refs/heads/tensorflow: df47d1b7c5d4c111a2ed8006a994c282d6cfc9fe
820820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2

branches/tensorflow/lib/Sema/ConstraintSystem.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -126,33 +126,6 @@ void ConstraintSystem::mergeEquivalenceClasses(TypeVariableType *typeVar1,
126126
// Merge nodes in the constraint graph.
127127
CG.mergeNodes(typeVar1, typeVar2);
128128

129-
// Let's try to de-duplicate any generic requirements
130-
// associated with given type variable, if it represents
131-
// a generic parameter.
132-
if (typeVar1->getImpl().getGenericParameter()) {
133-
auto requirements = CG.gatherConstraints(
134-
typeVar1, ConstraintGraph::GatheringKind::EquivalenceClass,
135-
[](Constraint *constraint) -> bool {
136-
if (auto *locator = constraint->getLocator()) {
137-
return locator->isLastElement(
138-
ConstraintLocator::TypeParameterRequirement) ||
139-
locator->isLastElement(
140-
ConstraintLocator::ConditionalRequirement);
141-
}
142-
143-
return false;
144-
});
145-
146-
llvm::SmallPtrSet<TypeBase *, 4> existingRequirements;
147-
for (auto *req : requirements) {
148-
auto constraintTy = req->getSecondType();
149-
// If this constraint has already been recorded in the
150-
// constraint system, there is no reason to check it twice.
151-
if (!existingRequirements.insert(constraintTy.getPointer()).second)
152-
retireConstraint(req);
153-
}
154-
}
155-
156129
if (updateWorkList) {
157130
addTypeVariableConstraintsToWorkList(typeVar1);
158131
}

branches/tensorflow/lib/Sema/ConstraintSystem.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,6 @@ class Solution {
637637
/// The list of member references which couldn't be resolved,
638638
/// and had to be assumed based on their use.
639639
llvm::SmallVector<ConstraintLocator *, 4> MissingMembers;
640-
llvm::SmallVector<std::pair<GenericSignature *, unsigned>, 4>
641-
FixedRequirements;
642640

643641
/// The set of disjunction choices used to arrive at this solution,
644642
/// which informs constraint application.

0 commit comments

Comments
 (0)