Index: src/compiler/representation-change.h |
diff --git a/src/compiler/representation-change.h b/src/compiler/representation-change.h |
index 9f50d2aa60b83c797c011763f7d206e9c76a9800..3554e6aa48888e3fbc46d979ae5744476d205f8e 100644 |
--- a/src/compiler/representation-change.h |
+++ b/src/compiler/representation-change.h |
@@ -35,6 +35,10 @@ class Truncation final { |
bool IsUsedAsFloat64() const { |
return LessGeneral(kind_, TruncationKind::kFloat64); |
} |
+ bool IdentifiesMinusZeroAndZero() { |
+ return LessGeneral(kind_, TruncationKind::kWord32) || |
+ LessGeneral(kind_, TruncationKind::kBool); |
+ } |
bool IdentifiesNaNAndZero() { |
return LessGeneral(kind_, TruncationKind::kWord32) || |
LessGeneral(kind_, TruncationKind::kBool); |