Commit cf9d3d52 authored by Mike Stanton's avatar Mike Stanton Committed by Commit Bot

[Turbofan] operator!= unnecessary in simplified-operator.

They can be...eliminated.

Bug: 
Change-Id: I234dddfb059fa15daf09c2095f1ea1813aa8428f
Reviewed-on: https://chromium-review.googlesource.com/720802Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Michael Stanton <mvstanton@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48580}
parent c7990226
...@@ -40,12 +40,6 @@ bool operator==(FieldAccess const& lhs, FieldAccess const& rhs) { ...@@ -40,12 +40,6 @@ bool operator==(FieldAccess const& lhs, FieldAccess const& rhs) {
lhs.machine_type == rhs.machine_type; lhs.machine_type == rhs.machine_type;
} }
bool operator!=(FieldAccess const& lhs, FieldAccess const& rhs) {
return !(lhs == rhs);
}
size_t hash_value(FieldAccess const& access) { size_t hash_value(FieldAccess const& access) {
// On purpose we don't include the write barrier kind here, as this method is // On purpose we don't include the write barrier kind here, as this method is
// really only relevant for eliminating loads and they don't care about the // really only relevant for eliminating loads and they don't care about the
...@@ -92,12 +86,6 @@ bool operator==(ElementAccess const& lhs, ElementAccess const& rhs) { ...@@ -92,12 +86,6 @@ bool operator==(ElementAccess const& lhs, ElementAccess const& rhs) {
lhs.machine_type == rhs.machine_type; lhs.machine_type == rhs.machine_type;
} }
bool operator!=(ElementAccess const& lhs, ElementAccess const& rhs) {
return !(lhs == rhs);
}
size_t hash_value(ElementAccess const& access) { size_t hash_value(ElementAccess const& access) {
// On purpose we don't include the write barrier kind here, as this method is // On purpose we don't include the write barrier kind here, as this method is
// really only relevant for eliminating loads and they don't care about the // really only relevant for eliminating loads and they don't care about the
...@@ -192,11 +180,6 @@ bool operator==(CheckMapsParameters const& lhs, ...@@ -192,11 +180,6 @@ bool operator==(CheckMapsParameters const& lhs,
return lhs.flags() == rhs.flags() && lhs.maps() == rhs.maps(); return lhs.flags() == rhs.flags() && lhs.maps() == rhs.maps();
} }
bool operator!=(CheckMapsParameters const& lhs,
CheckMapsParameters const& rhs) {
return !(lhs == rhs);
}
size_t hash_value(CheckMapsParameters const& p) { size_t hash_value(CheckMapsParameters const& p) {
return base::hash_combine(p.flags(), p.maps()); return base::hash_combine(p.flags(), p.maps());
} }
...@@ -261,10 +244,6 @@ bool operator==(ElementsTransition const& lhs, ElementsTransition const& rhs) { ...@@ -261,10 +244,6 @@ bool operator==(ElementsTransition const& lhs, ElementsTransition const& rhs) {
lhs.target().address() == rhs.target().address(); lhs.target().address() == rhs.target().address();
} }
bool operator!=(ElementsTransition const& lhs, ElementsTransition const& rhs) {
return !(lhs == rhs);
}
size_t hash_value(ElementsTransition transition) { size_t hash_value(ElementsTransition transition) {
return base::hash_combine(static_cast<uint8_t>(transition.mode()), return base::hash_combine(static_cast<uint8_t>(transition.mode()),
transition.source().address(), transition.source().address(),
...@@ -483,10 +462,6 @@ bool operator==(AllocateParameters const& lhs, AllocateParameters const& rhs) { ...@@ -483,10 +462,6 @@ bool operator==(AllocateParameters const& lhs, AllocateParameters const& rhs) {
return lhs.pretenure() == rhs.pretenure() && lhs.type() == rhs.type(); return lhs.pretenure() == rhs.pretenure() && lhs.type() == rhs.type();
} }
bool operator!=(AllocateParameters const& lhs, AllocateParameters const& rhs) {
return !(lhs == rhs);
}
PretenureFlag PretenureFlagOf(const Operator* op) { PretenureFlag PretenureFlagOf(const Operator* op) {
if (op->opcode() == IrOpcode::kNewDoubleElements || if (op->opcode() == IrOpcode::kNewDoubleElements ||
op->opcode() == IrOpcode::kNewSmiOrObjectElements) { op->opcode() == IrOpcode::kNewSmiOrObjectElements) {
......
...@@ -51,7 +51,6 @@ struct FieldAccess { ...@@ -51,7 +51,6 @@ struct FieldAccess {
}; };
V8_EXPORT_PRIVATE bool operator==(FieldAccess const&, FieldAccess const&); V8_EXPORT_PRIVATE bool operator==(FieldAccess const&, FieldAccess const&);
bool operator!=(FieldAccess const&, FieldAccess const&);
size_t hash_value(FieldAccess const&); size_t hash_value(FieldAccess const&);
...@@ -78,7 +77,6 @@ struct ElementAccess { ...@@ -78,7 +77,6 @@ struct ElementAccess {
}; };
V8_EXPORT_PRIVATE bool operator==(ElementAccess const&, ElementAccess const&); V8_EXPORT_PRIVATE bool operator==(ElementAccess const&, ElementAccess const&);
bool operator!=(ElementAccess const&, ElementAccess const&);
size_t hash_value(ElementAccess const&); size_t hash_value(ElementAccess const&);
...@@ -149,7 +147,6 @@ class CheckMapsParameters final { ...@@ -149,7 +147,6 @@ class CheckMapsParameters final {
}; };
bool operator==(CheckMapsParameters const&, CheckMapsParameters const&); bool operator==(CheckMapsParameters const&, CheckMapsParameters const&);
bool operator!=(CheckMapsParameters const&, CheckMapsParameters const&);
size_t hash_value(CheckMapsParameters const&); size_t hash_value(CheckMapsParameters const&);
...@@ -198,7 +195,6 @@ class ElementsTransition final { ...@@ -198,7 +195,6 @@ class ElementsTransition final {
}; };
bool operator==(ElementsTransition const&, ElementsTransition const&); bool operator==(ElementsTransition const&, ElementsTransition const&);
bool operator!=(ElementsTransition const&, ElementsTransition const&);
size_t hash_value(ElementsTransition); size_t hash_value(ElementsTransition);
...@@ -253,7 +249,6 @@ size_t hash_value(AllocateParameters); ...@@ -253,7 +249,6 @@ size_t hash_value(AllocateParameters);
V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, AllocateParameters); V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, AllocateParameters);
bool operator==(AllocateParameters const&, AllocateParameters const&); bool operator==(AllocateParameters const&, AllocateParameters const&);
bool operator!=(AllocateParameters const&, AllocateParameters const&);
PretenureFlag PretenureFlagOf(const Operator* op) WARN_UNUSED_RESULT; PretenureFlag PretenureFlagOf(const Operator* op) WARN_UNUSED_RESULT;
......
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