Commit 305546e1 authored by jarin's avatar jarin Committed by Commit bot

[turbofan] Remove a bit of dead code from simplified lowering.

Review URL: https://codereview.chromium.org/1413153013

Cr-Commit-Position: refs/heads/master@{#31793}
parent 7890dc4f
......@@ -331,9 +331,7 @@ class RepresentationSelector {
if (upper->Is(Type::Signed32()) || upper->Is(Type::Unsigned32())) {
// multiple uses, but we are within 32 bits range => pick kRepWord32.
return kRepWord32;
} else if (((use & kRepMask) == kRepWord32 &&
!CanObserveNonWord32(use)) ||
(use & kTypeMask) == kTypeInt32 ||
} else if ((use & kTypeMask) == kTypeInt32 ||
(use & kTypeMask) == kTypeUint32) {
// We only use 32 bits or we use the result consistently.
return kRepWord32;
......@@ -493,11 +491,6 @@ class RepresentationSelector {
return (use & kTypeMask & ~(kTypeInt32 | kTypeUint32)) != 0;
}
bool CanObserveMinusZero(MachineTypeUnion use) {
// TODO(turbofan): technically Uint32 cannot observe minus zero either.
return (use & (kTypeUint32 | kTypeNumber | kTypeAny)) != 0;
}
bool CanObserveNaN(MachineTypeUnion use) {
return (use & (kTypeNumber | kTypeAny)) != 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment