Skip to content

Commit 0f601c3

Browse files
rakudramaCommit Queue
authored and
Commit Queue
committed
[dart2js] Simplify HTypeKnow.isRedundant
After 0bb3adb it seems we should not need the HTypeKnown to stick around since the knownType can no longer change. Bug: #60327 Change-Id: I575816a11e41e75acebecde1c32d37d251b5947b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426343 Reviewed-by: Mayank Patke <[email protected]> Commit-Queue: Stephen Adams <[email protected]>
1 parent 9ab2139 commit 0f601c3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/compiler/lib/src/ssa/nodes.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4088,9 +4088,6 @@ class HTypeKnown extends HCheck {
40884088

40894089
bool isRedundant(JClosedWorld closedWorld) {
40904090
AbstractValueDomain abstractValueDomain = closedWorld.abstractValueDomain;
4091-
if (abstractValueDomain.containsAll(knownType).isPotentiallyTrue) {
4092-
return false;
4093-
}
40944091
AbstractValue inputType = checkedInput.instructionType;
40954092
return abstractValueDomain.isIn(inputType, knownType).isDefinitelyTrue;
40964093
}

0 commit comments

Comments
 (0)